Skip to content

Commit

Permalink
Fix selector isInvisible logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Oct 4, 2019
1 parent 35b3293 commit c3fdce9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ast_selectors.cpp
Expand Up @@ -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;
}

/////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit c3fdce9

Please sign in to comment.