diff options
author | bptato <nincsnevem662@gmail.com> | 2021-12-14 18:32:52 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-12-14 18:32:52 +0100 |
commit | fac95085e1de75e99c12ec30b2d697cf4a77d3ba (patch) | |
tree | c16e5a82f1bc3331ef551212c698a07ba1a08168 | |
parent | fbcfc918c5795d0c2689876fc730032a600e2910 (diff) | |
download | chawan-fac95085e1de75e99c12ec30b2d697cf4a77d3ba.tar.gz |
Fix ":is" function
-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 = |