@@ -2106,25 +2106,15 @@ <h4 id=at-rule-mode><span class=secno>3.5.4. </span> <dfn
21062106 < dt > < span class =temp > (</ span > token
21072107
21082108 < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2109- < i > current input token</ i > . If a block is returned, append it to the
2110- prelude of the < a href ="#current-rule "> < i > current rule</ i > </ a > and remain
2111- in this mode.
2112- < p > Otherwise, pop the < a href ="#current-rule "> < i > current rule</ i > </ a >
2113- from the < a href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > .
2114- Switch to the < a
2115- href ="#next-block-or-statement-error-mode0 "> < i > next-block-or-statement
2116- error mode</ i > </ a > .
2109+ < i > current input token</ i > . Append the returned block to the prelude of
2110+ the < a href ="#current-rule "> < i > current rule</ i > </ a > and remain in this
2111+ mode.
21172112
21182113 < dt > function token
21192114
2120- < dd > < i > Consume a function</ i > with the < i > current input token</ i > . If a
2121- function is returned, append it to the prelude of the < a
2115+ < dd > < i > Consume a function</ i > with the < i > current input token</ i > . Append
2116+ the returned function to the prelude of the < a
21222117 href ="#current-rule "> < i > current rule</ i > </ a > and remain in this mode.
2123- < p > Otherwise, pop the < a href ="#current-rule "> < i > current rule</ i > </ a >
2124- from the < a href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > .
2125- Switch to the < a
2126- href ="#next-block-or-statement-error-mode0 "> < i > next-block-or-statement
2127- error mode</ i > </ a > .
21282118
21292119 < dt > anything else
21302120
@@ -2190,23 +2180,15 @@ <h4 id=style-rule-mode><span class=secno>3.5.6. </span> <dfn
21902180 < dt > < span class =temp > (</ span > token
21912181
21922182 < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2193- < i > current input token</ i > . If a block is returned, append it to the
2194- selector of the < a href ="#current-rule "> < i > current rule</ i > </ a > and
2195- remain in this mode.
2196- < p > Otherwise, pop the < a href ="#current-rule "> < i > current rule</ i > </ a >
2197- from the < a href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > .
2198- Switch to the < a href ="#next-block-error-mode0 "> < i > next-block error
2199- mode</ i > </ a > .
2183+ < i > current input token</ i > . Append the returned block to the selector of
2184+ the < a href ="#current-rule "> < i > current rule</ i > </ a > and remain in this
2185+ mode.
22002186
22012187 < dt > function token
22022188
2203- < dd > < i > Consume a function</ i > with the < i > current input token</ i > . If a
2204- function is returned, append it to the selector of the < a
2189+ < dd > < i > Consume a function</ i > with the < i > current input token</ i > . Append
2190+ the returned function to the selector of the < a
22052191 href ="#current-rule "> < i > current rule</ i > </ a > and remain in this mode.
2206- < p > Otherwise, pop the < a href ="#current-rule "> < i > current rule</ i > </ a >
2207- from the < a href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > .
2208- Switch to the < a href ="#next-block-error-mode0 "> < i > next-block error
2209- mode</ i > </ a > .
22102192
22112193 < dt > anything else
22122194
@@ -2284,48 +2266,23 @@ <h4 id=declaration-value-mode><span class=secno>3.5.9. </span> <dfn
22842266 < p > Consume the < a href ="#next-input-token "> < i > next input token</ i > </ a > .
22852267
22862268 < dl >
2287- < dt > cdo token
2288-
2289- < dt > cdc token
2290-
2291- < dt > < span class =temp > ]</ span > token
2292-
2293- < dt > < span class =temp > )</ span > token
2294-
2295- < dt > bad-string token
2296-
2297- < dt > bad-url token
2298-
2299- < dd > This is a < i > parse error</ i > . Discard the < a
2300- href ="#current-declaration "> < i > current declaration</ i > </ a > and switch to
2301- the < a href ="#next-declaration-error-mode0 "> < i > next-declaration error
2302- mode</ i > </ a > .
2303-
23042269 < dt > < span class =temp > {</ span > token
23052270
23062271 < dt > < span class =temp > [</ span > token
23072272
23082273 < dt > < span class =temp > (</ span > token
23092274
23102275 < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2311- < i > current input token</ i > . If a block is returned, append it to the
2312- value of the < a href ="#current-declaration "> < i > current
2313- declaration</ i > </ a > and remain in this mode.
2314- < p > Otherwise, discard the < a href ="#current-declaration "> < i > current
2315- declaration</ i > </ a > and switch to the < a
2316- href ="#next-declaration-error-mode0 "> < i > next-declaration error
2317- mode</ i > </ a > .
2276+ < i > current input token</ i > . Append the returned block to the value of the
2277+ < a href ="#current-declaration "> < i > current declaration</ i > </ a > and remain
2278+ in this mode.
23182279
23192280 < dt > function token
23202281
2321- < dd > < i > Consume a function</ i > with the < i > current input token</ i > . If a
2322- function is returned, append it to the value of the < a
2282+ < dd > < i > Consume a function</ i > with the < i > current input token</ i > . Append
2283+ the returned function to the value of the < a
23232284 href ="#current-declaration "> < i > current declaration</ i > </ a > . and remain in
23242285 this mode.
2325- < p > Otherwise, discard the < a href ="#current-declaration "> < i > current
2326- declaration</ i > </ a > and switch to the < a
2327- href ="#next-declaration-error-mode0 "> < i > next-declaration error
2328- mode</ i > </ a > .
23292286
23302287 < dt > delim token with a value of "!"
23312288
@@ -2538,28 +2495,7 @@ <h4 id=consume-a-block><span class=secno>3.5.14. </span> <dfn
25382495
25392496 < dt > < a href ="#ending-token "> < i > ending token</ i > </ a >
25402497
2541- < dd > If the error flag is false, return the block.
2542- < p > Otherwise, return nothing.
2543-
2544- < dt > }, ], or ) token (whichever two are not the < a
2545- href ="#ending-token "> < i > ending token</ i > </ a > )
2546-
2547- < dd > This is a < i > parse error</ i > . Set the error flag to true.
2548-
2549- < dt > bad-string token
2550-
2551- < dt > bad-url token
2552-
2553- < dt > semicolon token
2554-
2555- < dt > cdo token
2556-
2557- < dt > cdc token
2558-
2559- < dt > at-keyword token
2560-
2561- < dd > This is a < i > parse error</ i > . Set the < a href ="#error-flag "> < i > error
2562- flag</ i > </ a > to true.
2498+ < dd > Return the block.
25632499
25642500 < dt > < span class =temp > {</ span > token
25652501
@@ -2568,19 +2504,14 @@ <h4 id=consume-a-block><span class=secno>3.5.14. </span> <dfn
25682504 < dt > < span class =temp > (</ span > token
25692505
25702506 < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2571- < i > current input token</ i > . If it returns a block, append the returned
2572- block to the value of the < a href ="#current-block "> < i > current
2573- block</ i > </ a > .
2574- < p > Otherwise, set the < a href ="#error-flag "> < i > error flag</ i > </ a > to
2575- true.
2507+ < i > current input token</ i > . Append the returned block to the value of the
2508+ < a href ="#current-block "> < i > current block</ i > </ a > .
25762509
25772510 < dt > function token
25782511
2579- < dd > < i > Consume a function</ i > with the < i > current input token</ i > . If it
2580- returns a function, append the returned function to the value of the < a
2512+ < dd > < i > Consume a function</ i > with the < i > current input token</ i > . Append
2513+ the returned function to the value of the < a
25812514 href ="#current-block "> < i > current block</ i > </ a > .
2582- < p > Otherwise, set the < a href ="#error-flag "> < i > error flag</ i > </ a > to
2583- true.
25842515
25852516 < dt > anything else
25862517
0 commit comments