diff options
-rw-r--r-- | src/css/style.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/css/style.nim b/src/css/style.nim index efffb8c6..c1fba752 100644 --- a/src/css/style.nim +++ b/src/css/style.nim @@ -64,9 +64,9 @@ func funcSelectorMatches(elem: Element, sel: Selector): SelectResult = of "is", "where": for slist in sel.fsels: let res = elem.selectorsMatch(slist) - if not res.success: - return selectres(false) - return selectres(true) + if res.success: + return selectres(true) + return selectres(false) else: discard func selectorMatches(elem: Element, sel: Selector): SelectResult = |