From c3fdce935178a951e2086aac2007a0d982294205 Mon Sep 17 00:00:00 2001 From: Marcel Greter Date: Fri, 4 Oct 2019 18:24:32 +0200 Subject: [PATCH] Fix selector `isInvisible` logic --- src/ast_selectors.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } /////////////////////////////////////////////////////////////////////////