Skip to content

Commit 545cec9

Browse files
committed
[css3-syntax] Make it possible to have a style rule with an empty selector.
1 parent 6819774 commit 545cec9

2 files changed

Lines changed: 12 additions & 14 deletions

File tree

css3-syntax/Overview.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2906,9 +2906,9 @@ <h4 id=top-level-mode><span class=secno>5.3.1. </span> <dfn
29062906

29072907
<dt>{ token
29082908

2909-
<dd> This is a <i>parse error</i>. <a
2910-
href="#consume-a-primitive0"><i>Consume a primitive</i></a> and ignore
2911-
the return value. Remain in this state.
2909+
<dd> Create a style rule and push it onto the <a
2910+
href="#stack-of-open-rules"><i>stack of open rules</i></a>. Switch to the
2911+
<a href="#declaration-block-mode0"><i>declaration-block mode</i></a>.
29122912

29132913
<dt>EOF token
29142914

@@ -3012,9 +3012,9 @@ <h4 id=rule-block-mode><span class=secno>5.3.3. </span> <dfn
30123012

30133013
<dt>{ token
30143014

3015-
<dd> This is a <i>parse error</i>. <a
3016-
href="#consume-a-primitive0"><i>Consume a primitive</i></a> and ignore
3017-
the return value. Remain in this state.
3015+
<dd> Create a style rule and push it onto the <a
3016+
href="#stack-of-open-rules"><i>stack of open rules</i></a>. Switch to the
3017+
<a href="#declaration-block-mode0"><i>declaration-block mode</i></a>.
30183018

30193019
<dt>} token
30203020

css3-syntax/Overview.src.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,10 +2385,9 @@ <h4>
23852385

23862386
<dt>{ token
23872387
<dd>
2388-
This is a <i>parse error</i>.
2389-
<i>Consume a primitive</i>
2390-
and ignore the return value.
2391-
Remain in this state.
2388+
Create a style rule
2389+
and push it onto the <i>stack of open rules</i>.
2390+
Switch to the <i>declaration-block mode</i>.
23922391

23932392
<dt>EOF token
23942393
<dd>
@@ -2492,10 +2491,9 @@ <h4>
24922491

24932492
<dt>{ token
24942493
<dd>
2495-
This is a <i>parse error</i>.
2496-
<i>Consume a primitive</i>
2497-
and ignore the return value.
2498-
Remain in this state.
2494+
Create a style rule
2495+
and push it onto the <i>stack of open rules</i>.
2496+
Switch to the <i>declaration-block mode</i>.
24992497

25002498
<dt>} token
25012499
<dd>

0 commit comments

Comments
 (0)