Skip to content

Commit 6934a48

Browse files
committed
[selectors-4] Clarifications to complex selector matching. #2240 p=glazou, loiriol
1 parent 9b76d4b commit 6934a48

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

selectors-4/Overview.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,9 @@ Structure and Terminology</h3>
608608
A given element is said to <a>match</a> a <a>complex selector</a>
609609
when there exists a list of elements,
610610
each matching a corresponding <a>compound selector</a> in the <a>complex selector</a>,
611-
with their relationships matching the <a>combinators</a> between them,
612-
and with the given element matching the last <a>compound selector</a>.
611+
with each pair of elements consecutive in the list matching
612+
the <a>combinator</a> between their corresponding <a>compound selectors</a>,
613+
and with the last element being the given element.
613614

614615
Note: Thus, a selector consisting of a single <a>compound selector</a>
615616
matches any element satisfying the requirements

0 commit comments

Comments
 (0)