@@ -3498,6 +3498,11 @@ Grammar</h2>
34983498 * Between <em> any</em> of the components of a <<wq-name>> .
34993499 * Between the components of an <<attr-matcher>> .
35003500 * Between the components of a <<combinator>> .
3501+
3502+ Whitespace is <em> required</em>
3503+ between two <<compound-selector>> s
3504+ if the <<combinator>> between them is omitted.
3505+ (This indicates the descendant combinator is being used.)
35013506 <li id="single-colon-pseudos">
35023507 The four <a href="https://www.w3.org/TR/CSS2/selectors.html#pseudo-element-selectors">Level 2</a> <a>pseudo-elements</a>
35033508 (''::before'' , ''::after'' , ''::first-line'' , and ''::first-letter'' )
@@ -3513,13 +3518,6 @@ Grammar</h2>
35133518 for the selector to be considered valid.
35143519 See [[#invalid]] for additional rules for parsing selectors.
35153520
3516- Note: The grammar above states that a combinator is optional
3517- between two <<compound-selector>> s in a <<complex-selector>> .
3518- This is only for grammatical purposes,
3519- as the <a>CSS Value Definition Syntax</a> 's lax treatment of whitespace
3520- makes it difficult to indicate that a grammar term can <em> be</em> whitespace.
3521- "Omitting" a combinator is actually just specifying the <a>descendant combinator</a> .
3522-
35233521 Note: In general,
35243522 a <<pseudo-element-selector>> is only valid
35253523 if placed at the end of the last <<compound-selector>>
0 commit comments