about summary refs log tree commit diff stats
path: root/src/css/style.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-12-14 18:32:52 +0100
committerbptato <nincsnevem662@gmail.com>2021-12-14 18:32:52 +0100
commitfac95085e1de75e99c12ec30b2d697cf4a77d3ba (patch)
treec16e5a82f1bc3331ef551212c698a07ba1a08168 /src/css/style.nim
parentfbcfc918c5795d0c2689876fc730032a600e2910 (diff)
downloadchawan-fac95085e1de75e99c12ec30b2d697cf4a77d3ba.tar.gz
Fix ":is" function
Diffstat (limited to 'src/css/style.nim')
-rw-r--r--src/css/style.nim6
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 =