Skip to content

Commit 46d201d

Browse files
committed
[css-syntax] Kill the remaining instances of 'recognized at-rule name'.
1 parent 1082190 commit 46d201d

2 files changed

Lines changed: 8 additions & 66 deletions

File tree

css-syntax/Overview.html

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2819,15 +2819,6 @@ <h2 id=parsing><span class=secno>5. </span> Parsing</h2>
28192819

28202820
<dd> A simple block has an associated token (either a [, (, or { token)
28212821
and a value consisting of a list of component values.
2822-
2823-
<dt><dfn id=recognized-at-rule-name>recognized at-rule name</dfn>
2824-
2825-
<dd> When the parser is invoked, it must be provided with a list of <a
2826-
href="#recognized-at-rule-name"><i>recognized at-rule names</i></a>,
2827-
representing the <a href="#at-rule"><i>at-rules</i></a> that the invoker
2828-
knows about. Each name in the list is additionally associated with
2829-
whether the <a href="#at-rule"><i>at-rule</i></a> is <i>rule-filled</i>,
2830-
<i>declaration-filled</i>, or a <i>statement</i>.
28312822
</dl>
28322823

28332824
<h3 id=parser-diagrams><span class=secno>5.1. </span> Parser Railroad
@@ -3460,19 +3451,8 @@ <h4 id=parse-a-rule><span class=secno>5.3.2. </span> <dfn
34603451
<li> If the <a href="#current-input-token"><i>current input token</i></a>
34613452
is a CDO token, CDC token, or EOF token, return a syntax error.
34623453
<p> Otherwise, if the <a href="#current-input-token"><i>current input
3463-
token</i></a> is an at-keyword token:
3464-
3465-
<ul>
3466-
<li> If the at-keyword token's name is on the list of <a
3467-
href="#recognized-at-rule-name"><i>recognized at-rule names</i></a>,
3468-
and the list indicates that it is a <i>rule-filled</i> or
3469-
<i>declaration-filled</i> at-rule, <a
3470-
href="#consume-an-at-rule0"><i>consume an at-rule</i></a>. If nothing
3471-
was returned, return a syntax error.
3472-
3473-
<li> Otherwise, <i>consume an at-statement</i>. If nothing was returned,
3474-
return a syntax error.
3475-
</ul>
3454+
token</i></a> is an at-keyword token, <a
3455+
href="#consume-an-at-rule0"><i>consume an at-rule</i></a>.
34763456

34773457
<p> Otherwise, <a href="#consume-a-qualified-rule0"><i>consume a
34783458
qualified rule</i></a>. If nothing was returned, return a syntax error.
@@ -3701,13 +3681,8 @@ <h4 id=consume-a-list-of-declarations><span class=secno>5.4.4. </span> <dfn
37013681

37023682
<dt>at-keyword token
37033683

3704-
<dd> <a href="#reconsume-the-current-input-token"><i>Reconsume the current
3705-
input token</i></a>. If the token's value is on the list of <a
3706-
href="#recognized-at-rule-name"><i>recognized at-rule names</i></a>, and
3707-
is noted as <i>rule-filled</i> or <i>declaration-filled</i>, <a
3708-
href="#consume-an-at-rule0"><i>consume an at-rule</i></a>; otherwise,
3709-
<i>consume an at-statement</i>. If anything was returned, append it to
3710-
the list of declarations.
3684+
<dd> <a href="#consume-an-at-rule0"><i>Consume an at-rule</i></a>. Append
3685+
the returned rule to the list of declarations.
37113686

37123687
<dt>ident token
37133688

@@ -4557,9 +4532,6 @@ <h2 class=no-num id=index> Index</h2>
45574532
title="section 2."><strong>2.</strong></a>, <a href="#qualified-rule0"
45584533
title="section 5."><strong>5.</strong></a>
45594534

4560-
<li>recognized at-rule name, <a href="#recognized-at-rule-name"
4561-
title="section 5."><strong>5.</strong></a>
4562-
45634535
<li>reconsume the current input character, <a
45644536
href="#reconsume-the-current-input-character"
45654537
title="section 4.2."><strong>4.2.</strong></a>

css-syntax/Overview.src.html

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2157,16 +2157,6 @@ <h2>
21572157
<dd>
21582158
A simple block has an associated token (either a [, (, or { token)
21592159
and a value consisting of a list of component values.
2160-
2161-
<dt><dfn>recognized at-rule name</dfn>
2162-
<dd>
2163-
When the parser is invoked,
2164-
it must be provided with a list of <i>recognized at-rule names</i>,
2165-
representing the <i>at-rules</i> that the invoker knows about.
2166-
Each name in the list is additionally associated with whether the <i>at-rule</i> is
2167-
<i>rule-filled</i>,
2168-
<i>declaration-filled</i>,
2169-
or a <i>statement</i>.
21702160
</dl>
21712161

21722162
<h3 id='parser-diagrams'>
@@ -2369,22 +2359,8 @@ <h4>
23692359

23702360
<p>
23712361
Otherwise,
2372-
if the <i>current input token</i> is an at-keyword token:
2373-
2374-
<ul>
2375-
<li>
2376-
If the at-keyword token's name is on the list of <i>recognized at-rule names</i>,
2377-
and the list indicates that it is a <i>rule-filled</i> or <i>declaration-filled</i> at-rule,
2378-
<i>consume an at-rule</i>.
2379-
If nothing was returned,
2380-
return a syntax error.
2381-
2382-
<li>
2383-
Otherwise,
2384-
<i>consume an at-statement</i>.
2385-
If nothing was returned,
2386-
return a syntax error.
2387-
</ul>
2362+
if the <i>current input token</i> is an at-keyword token,
2363+
<i>consume an at-rule</i>.
23882364

23892365
<p>
23902366
Otherwise,
@@ -2648,14 +2624,8 @@ <h4>
26482624

26492625
<dt>at-keyword token
26502626
<dd>
2651-
<i>Reconsume the current input token</i>.
2652-
If the token's value is on the list of <i>recognized at-rule names</i>,
2653-
and is noted as <i>rule-filled</i> or <i>declaration-filled</i>,
2654-
<i>consume an at-rule</i>;
2655-
otherwise,
2656-
<i>consume an at-statement</i>.
2657-
If anything was returned,
2658-
append it to the list of declarations.
2627+
<i>Consume an at-rule</i>.
2628+
Append the returned rule to the list of declarations.
26592629

26602630
<dt>ident token
26612631
<dd>

0 commit comments

Comments
 (0)