Skip to content

Commit 2a639d5

Browse files
committed
[selectors-4] Amend the whitespace prohibitions to take <pseudo-compound-selector> into account. w3c#7085
1 parent a5eb357 commit 2a639d5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

selectors-4/Overview.bs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3566,8 +3566,10 @@ Grammar</h2>
35663566
35673567
<dfn>&lt;relative-real-selector-list></dfn> = <<relative-real-selector>>#
35683568
3569-
<dfn>&lt;complex-selector></dfn> = [ <<compound-selector>>? <<pseudo-compound-selector>>* ]!
3570-
[ <<combinator>>? [ <<compound-selector>>? <<pseudo-compound-selector>>* ]! ]*
3569+
<dfn>&lt;complex-selector-unit></dfn> = [ <<compound-selector>>? <<pseudo-compound-selector>>* ]!
3570+
3571+
<dfn>&lt;complex-selector></dfn> = <<complex-selector-unit>>
3572+
[ <<combinator>>? <<complex-selector-unit>> ]*
35713573
35723574
<dfn>&lt;complex-real-selector></dfn> = <<compound-selector>> [ <<combinator>>? <<compound-selector>> ]*
35733575
@@ -3581,7 +3583,6 @@ Grammar</h2>
35813583
35823584
<dfn>&lt;simple-selector></dfn> = <<type-selector>> | <<subclass-selector>>
35833585
3584-
35853586
<dfn>&lt;combinator></dfn> = '>' | '+' | '~' | [ '|' '|' ]
35863587
35873588
<dfn>&lt;type-selector></dfn> = <<wq-name>> | <<ns-prefix>>? '*'
@@ -3619,19 +3620,22 @@ Grammar</h2>
36193620
<li id="white-space">
36203621
White space is forbidden:
36213622
* Between any of the top-level components of a <<compound-selector>>
3623+
<<pseudo-compound-selector>>
36223624
(that is, forbidden between the <<type-selector>> and <<subclass-selector>>,
3623-
or between the <<subclass-selector>> and <<pseudo-element-selector>>,
3625+
or between the <<pseudo-element-selector>> and <<pseudo-class-selector>>,
36243626
etc).
36253627
* Between <em>any</em> of the components of a <<type-selector>>
36263628
or a <<class-selector>>.
36273629
* Between the ':'s, or between the ':' and <<ident-token>> or <<function-token>>,
36283630
of a <<pseudo-element-selector>> or a <<pseudo-class-selector>>.
36293631
* Between <em>any</em> of the components of a <<wq-name>>.
36303632
* Between the components of an <<attr-matcher>>.
3633+
* Between the <<compound-selector>> or <<pseudo-compound-selector>>s
3634+
in a <<complex-selector-unit>>
36313635
* Between the components of a <<combinator>>.
36323636

36333637
Whitespace is <em>required</em>
3634-
between two <<compound-selector>>s
3638+
between two <<complex-selector-unit>>s
36353639
if the <<combinator>> between them is omitted.
36363640
(This indicates the descendant combinator is being used.)
36373641
<li>

0 commit comments

Comments
 (0)