From 2b26bfdc556511d806bba7043b13a133b597764c Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 13 Feb 2023 20:31:15 +0100 Subject: css/match: fix next sibling selector (+) --- src/css/match.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/css/match.nim') 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 -- cgit 1.4.1-2-gfad0