You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encountering a <aclass="production css-code" data-link-type=typehref=#typedef-semicolon-tokentitle="<semicolon-token>"><semicolon-token></a> ends the at-rule immediately,
318
-
while encountering an opening curly-brace <<{-token>> starts the at-rule’s body.
318
+
while encountering an opening curly-brace <ahref=#tokendef-open-curly><{-token></a> starts the at-rule’s body.
319
319
The at-rule seeks forward, matching blocks (content surrounded by (), {}, or [])
320
-
until it finds a closing curly-brace <<}-token>> that isn’t matched by anything else
320
+
until it finds a closing curly-brace <ahref=#tokendef-close-curly><}-token></a> that isn’t matched by anything else
321
321
or inside of another block.
322
322
The contents of the at-rule are then interpreted according to the at-rule’s own grammar.
A simple block has an associated token (either a <<[-token>>, <<(-token>>, or <<{-token>>)
2829
+
A simple block has an associated token (either a <ahref=#tokendef-open-square><[-token></a>, <ahref=#tokendef-open-paren><(-token></a>, or <ahref=#tokendef-open-curly><{-token></a>)
2830
2830
and a value consisting of a list of component values.
<adata-link-type=dfnhref=#consume-a-simple-block0title="consume a simple block">Consume a simple block</a>
3807
3807
and assign it to the at-rule’s block.
3808
3808
Return the at-rule.
3809
3809
3810
-
<dt><adata-link-type=dfnhref=#simple-blocktitle="simple block">simple block</a> with an associated token of <<{-token>>
3810
+
<dt><adata-link-type=dfnhref=#simple-blocktitle="simple block">simple block</a> with an associated token of <ahref=#tokendef-open-curly><{-token></a>
<adata-link-type=dfnhref=#consume-a-simple-block0title="consume a simple block">Consume a simple block</a>
3843
3843
and assign it to the qualified rule’s block.
3844
3844
Return the qualified rule.
3845
3845
3846
-
<dt><adata-link-type=dfnhref=#simple-blocktitle="simple block">simple block</a> with an associated token of <<{-token>>
3846
+
<dt><adata-link-type=dfnhref=#simple-blocktitle="simple block">simple block</a> with an associated token of <ahref=#tokendef-open-curly><{-token></a>
<p><adata-link-type=dfnhref=#consume-the-next-input-tokentitle="consume the next input token">Consume the next input token</a>.
3949
3949
3950
3950
<p> If the <adata-link-type=dfnhref=#current-input-tokentitle="current input token">current input token</a>
3951
-
is a <<{-token>>, <<[-token>>, or <<(-token>>,
3951
+
is a <ahref=#tokendef-open-curly><{-token></a>, <ahref=#tokendef-open-square><[-token></a>, or <ahref=#tokendef-open-paren><(-token></a>,
3952
3952
<adata-link-type=dfnhref=#consume-a-simple-block0title="consume a simple block">consume a simple block</a>
<p> To <dfndata-dfn-type=dfndata-noexport="" id=consume-a-simple-block0>consume a simple block<aclass=self-linkhref=#consume-a-simple-block0></a></dfn>:
3967
3967
3968
3968
<p> The <dfndata-dfn-type=dfndata-noexport="" id=ending-token>ending token<aclass=self-linkhref=#ending-token></a></dfn> is the mirror variant of the <adata-link-type=dfnhref=#current-input-tokentitle="current input token">current input token</a>.
3969
-
(E.g. if it was called with <<[-token>>, the <adata-link-type=dfnhref=#ending-tokentitle="ending token">ending token</a> is <<]-token>>.)
3969
+
(E.g. if it was called with <ahref=#tokendef-open-square><[-token></a>, the <adata-link-type=dfnhref=#ending-tokentitle="ending token">ending token</a> is <ahref=#tokendef-close-square><]-token></a>.)
3970
3970
3971
3971
<p> Create a <adata-link-type=dfnhref=#simple-blocktitle="simple block">simple block</a> with its associated token set to the <adata-link-type=dfnhref=#current-input-tokentitle="current input token">current input token</a>
<li><aclass="production css-code" data-link-type=typehref=#typedef-ident-tokentitle="<ident-token>"><ident-token></a>s (such as <spanclass=cssdata-link-type=maybetitle=auto>auto</span>, <spanclass=cssdata-link-type=maybetitle=disc>disc</span>, etc), which are simply written as their value.
4229
4229
<li><aclass="production css-code" data-link-type=typehref=#typedef-at-keyword-tokentitle="<at-keyword-token>"><at-keyword-token></a>s, which are written as an @ character followed by the token’s value, like "@media".
4230
4230
<li><aclass="production css-code" data-link-type=typehref=#typedef-function-tokentitle="<function-token>"><function-token></a>s, which are written as the function name followed by a ( character, like "translate(".
4231
-
<li>The <aclass="production css-code" data-link-type=typehref=#typedef-colon-tokentitle="<colon-token>"><colon-token></a> (written as <code>:</code>), <aclass="production css-code" data-link-type=typehref=#typedef-comma-tokentitle="<comma-token>"><comma-token></a> (written as <code>,</code>), <aclass="production css-code" data-link-type=typehref=#typedef-semicolon-tokentitle="<semicolon-token>"><semicolon-token></a> (written as <code>;</code>), <<(-token>>, <<)-token>>, <<{-token>>, and <<}-token>>s.
4231
+
<li>The <aclass="production css-code" data-link-type=typehref=#typedef-colon-tokentitle="<colon-token>"><colon-token></a> (written as <code>:</code>), <aclass="production css-code" data-link-type=typehref=#typedef-comma-tokentitle="<comma-token>"><comma-token></a> (written as <code>,</code>), <aclass="production css-code" data-link-type=typehref=#typedef-semicolon-tokentitle="<semicolon-token>"><semicolon-token></a> (written as <code>;</code>), <ahref=#tokendef-open-paren><(-token></a>, <ahref=#tokendef-close-paren><)-token></a>, <ahref=#tokendef-open-curly><{-token></a>, and <ahref=#tokendef-close-curly><}-token></a>s.
4232
4232
</ul>
4233
4233
4234
4234
<p> Tokens match if their value is an <adata-link-type=dfnhref=#ascii-case-insensitivetitle="ascii case-insensitive">ASCII case-insensitive</a> match
<aclass="production css-code" data-link-type=typehref=#typedef-delim-tokentitle="<delim-token>"><delim-token></a>s are written with their value enclosed in single quotes.
4244
4244
For example, a <aclass="production css-code" data-link-type=typehref=#typedef-delim-tokentitle="<delim-token>"><delim-token></a> containing the "+" <adata-link-type=dfnhref=#code-pointtitle="code point">code point</a> is written as <code>'+'</code>.
4245
-
Similarly, the <<[-token>> and <<]-token>>s must be written in single quotes,
4245
+
Similarly, the <ahref=#tokendef-open-square><[-token></a> and <ahref=#tokendef-close-square><]-token></a>s must be written in single quotes,
4246
4246
as they’re used by the syntax of the grammar itself to group clauses.
4247
4247
<aclass="production css-code" data-link-type=typehref=#typedef-whitespace-tokentitle="<whitespace-token>"><whitespace-token></a> is never indicated in the grammar;
4248
4248
<aclass="production css-code" data-link-type=typehref=#typedef-whitespace-tokentitle="<whitespace-token>"><whitespace-token></a>s are allowed before, after, and between any two tokens,
a <aclass="production css-code" data-link-type=typehref=#typedef-number-tokentitle="<number-token>"><number-token></a>, <aclass="production css-code" data-link-type=typehref=#typedef-ident-tokentitle="<ident-token>"><ident-token></a>, or <aclass="production css-code" data-link-type=typehref=#typedef-dimension-tokentitle="<dimension-token>"><dimension-token></a> followed by a <aclass="production css-code" data-link-type=typehref=#typedef-percentage-tokentitle="<percentage-token>"><percentage-token></a>, <aclass="production css-code" data-link-type=typehref=#typedef-unicode-range-tokentitle="<unicode-range-token>"><unicode-range-token></a>, <aclass="production css-code" data-link-type=typehref=#typedef-url-tokentitle="<url-token>"><url-token></a>, or <aclass="production css-code" data-link-type=typehref=#typedef-function-tokentitle="<function-token>"><function-token></a>;
4470
4470
4471
4471
<li>
4472
-
an <aclass="production css-code" data-link-type=typehref=#typedef-ident-tokentitle="<ident-token>"><ident-token></a> followed by a <<(-token>>;
4472
+
an <aclass="production css-code" data-link-type=typehref=#typedef-ident-tokentitle="<ident-token>"><ident-token></a> followed by a <ahref=#tokendef-open-paren><(-token></a>;
4473
4473
4474
4474
<li>
4475
4475
a <aclass="production css-code" data-link-type=typehref=#typedef-delim-tokentitle="<delim-token>"><delim-token></a> containing "#" or "@" followed by any token except <aclass="production css-code" data-link-type=typehref=#typedef-whitespace-tokentitle="<whitespace-token>"><whitespace-token></a>;
0 commit comments