diff options
author | bptato <nincsnevem662@gmail.com> | 2023-02-13 20:31:15 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-02-13 20:31:15 +0100 |
commit | 2b26bfdc556511d806bba7043b13a133b597764c (patch) | |
tree | 9dd709e485c8a86cbd60208a126cdd3f2866720e /src/css/match.nim | |
parent | e4ecff6f3ff5e0ab617627f8637e4c3179cc4caf (diff) | |
download | chawan-2b26bfdc556511d806bba7043b13a133b597764c.tar.gz |
css/match: fix next sibling selector (+)
Diffstat (limited to 'src/css/match.nim')
-rw-r--r-- | src/css/match.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css/match.nim b/src/css/match.nim index b05fd392..4bc2897f 100644 --- a/src/css/match.nim +++ b/src/css/match.nim @@ -163,8 +163,8 @@ func complexSelectorMatches[T: Element|StyledNode](elem: T, cxsel: ComplexSelect continue if found: e = child - if not e.selectorsMatch(sels, felem): - return false + match = e.selectorsMatch(sels, felem) + break of SUBSEQ_SIBLING_COMBINATOR: var found = false if e.parentElement == nil: return false |