Skip to content

Commit c2fa7cf

Browse files
committed
[css-syntax-3] Make the ;-interruption *only* apply when parsing rules in a style block, not generally.
1 parent 1825ba0 commit c2fa7cf

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

css-syntax-3/Overview.bs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2545,7 +2545,9 @@ Consume an at-rule</h4>
25452545
<h4 id="consume-qualified-rule">
25462546
Consume a qualified rule</h4>
25472547

2548-
To <dfn>consume a qualified rule</dfn>:
2548+
To <dfn>consume a qualified rule</dfn>,
2549+
given an optional |mixed with declarations| boolean
2550+
(defaulting to false):
25492551

25502552
Create a new qualified rule
25512553
with its prelude initially set to an empty [=list=],
@@ -2555,11 +2557,20 @@ Consume a qualified rule</h4>
25552557

25562558
<dl>
25572559
<dt><<EOF-token>>
2558-
<dt><<semicolon-token>>
25592560
<dd>
25602561
This is a <a>parse error</a>.
25612562
Return nothing.
25622563

2564+
<dt><<semicolon-token>>
2565+
<dd>
2566+
If |mixed with declarations| is true,
2567+
this is a [=parse error=];
2568+
return nothing.
2569+
2570+
Otherwise,
2571+
append a <<semicolon-token>>
2572+
to the qualified rule's prelude.
2573+
25632574
<dt><a href="#tokendef-open-curly">&lt;{-token></a>
25642575
<dd>
25652576
<a>Consume a simple block</a>
@@ -2620,7 +2631,8 @@ Consume a style block's contents</h4>
26202631
<dt>anything else</dd>
26212632
<dd>
26222633
[=Reconsume the current input token=].
2623-
[=Consume a qualified rule=].
2634+
[=Consume a qualified rule=],
2635+
with |mixed with declarations| set to true.
26242636
If anything was returned,
26252637
append it to |rules|.
26262638
</dl>

0 commit comments

Comments
 (0)