diff --git a/src/ast_selectors.cpp b/src/ast_selectors.cpp index b55f24b02..1136d9644 100644 --- a/src/ast_selectors.cpp +++ b/src/ast_selectors.cpp @@ -381,10 +381,11 @@ namespace Sass { bool SelectorList::isInvisible() const { + if (length() == 0) return true; for (size_t i = 0; i < length(); i += 1) { - if (!get(i)->isInvisible()) return false; + if (get(i)->isInvisible()) return true; } - return true; + return false; } /////////////////////////////////////////////////////////////////////////