diff options
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 |