Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions selectors-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4456,7 +4456,7 @@ Grammar</h2>
<dfn>&lt;simple-selector></dfn> = <<type-selector>> | <<subclass-selector>>


<dfn>&lt;combinator></dfn> = '>' | '+' | '~' | [ '|' '|' ]
<dfn>&lt;combinator></dfn> = '>' | '+' | '~'

<dfn noexport>&lt;wq-name></dfn> = <<ns-prefix>>? <<ident-token>>
<dfn noexport>&lt;ns-prefix></dfn> = [ <<ident-token>> | '*' ]? '|'
Expand Down Expand Up @@ -4501,7 +4501,6 @@ Grammar</h2>
* Between the components of an <<attr-matcher>>.
* Between the <<compound-selector>> or <<pseudo-compound-selector>>s
in a <<complex-selector-unit>>
* Between the components of a <<combinator>>.

Whitespace is <em>required</em>
between two <<complex-selector-unit>>s
Expand Down
16 changes: 16 additions & 0 deletions selectors-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,22 @@ Reference combinators <code>/ref/</code></h3>
</div>


<h2 id="grammar" oldids="formal-syntax">
Grammar</h2>

This module extends the CSS grammar of selectors with:

<pre class=prod>
<dfn>&lt;combinator></dfn> = '>' | '+' | '~' | [ '|' '|' ] | [ / <<wq-name>> / ]
</pr>

<ul>
<li id="white-space">
White space is forbidden:
* Between the components of a <<combinator>>.
</ul>


<h2 id="changes">
Changes</h2>

Expand Down