Skip to content

Commit 19d884b

Browse files
committed
[css-syntax] Dedup ids.
1 parent 4db7a7a commit 19d884b

File tree

2 files changed

+219
-219
lines changed

2 files changed

+219
-219
lines changed

css-syntax/Overview.bs

+30-30
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Escaping</h3>
141141
<em>This section is not normative.</em>
142142

143143
Any Unicode <a>code point</a> can be included in an <a>identifier</a> or quoted string
144-
by <dfn>escaping</dfn> it.
144+
by <dfn id="escape-codepoint">escaping</dfn> it.
145145
CSS escape sequences start with a backslash (\), and continue with:
146146

147147
<ul>
@@ -867,7 +867,7 @@ Tokenizer Algorithms</h3>
867867

868868
The algorithms defined in this section transform a stream of <a>code points</a> into a stream of tokens.
869869

870-
<h4 id="consume-a-token">
870+
<h4 id="consume-token">
871871
Consume a token</h4>
872872

873873
This section describes how to <dfn>consume a token</dfn> from a stream of <a>code points</a>.
@@ -1142,7 +1142,7 @@ Consume a token</h4>
11421142
</dl>
11431143

11441144

1145-
<h4 id="consume-comments">
1145+
<h4 id="consume-comment">
11461146
Consume comments</h4>
11471147

11481148
This section describes how to <dfn>consume comments</dfn> from a stream of <a>code points</a>.
@@ -1162,7 +1162,7 @@ Consume comments</h4>
11621162
Return nothing.
11631163

11641164

1165-
<h4 id="consume-a-numeric-token">
1165+
<h4 id="consume-numeric-token">
11661166
Consume a numeric token</h4>
11671167

11681168
This section describes how to <dfn>consume a numeric token</dfn> from a stream of <a>code points</a>.
@@ -1194,7 +1194,7 @@ Consume a numeric token</h4>
11941194
and return it.
11951195

11961196

1197-
<h4 id="consume-an-ident-like-token">
1197+
<h4 id="consume-ident-like-token">
11981198
Consume an ident-like token</h4>
11991199

12001200
This section describes how to <dfn>consume an ident-like token</dfn> from a stream of <a>code points</a>.
@@ -1230,7 +1230,7 @@ Consume an ident-like token</h4>
12301230
and return it.
12311231

12321232

1233-
<h4 id="consume-a-string-token">
1233+
<h4 id="consume-string-token">
12341234
Consume a string token</h4>
12351235

12361236
This section describes how to <dfn>consume a string token</dfn> from a stream of <a>code points</a>.
@@ -1277,7 +1277,7 @@ Consume a string token</h4>
12771277
</dl>
12781278

12791279

1280-
<h4 id="consume-a-url-token">
1280+
<h4 id="consume-url-token">
12811281
Consume a url token</h4>
12821282

12831283
This section describes how to <dfn>consume a url token</dfn> from a stream of <a>code points</a>.
@@ -1345,7 +1345,7 @@ Consume a url token</h4>
13451345
</ol>
13461346

13471347

1348-
<h4 id="consume-a-unicode-range-token">
1348+
<h4 id="consume-unicode-range-token">
13491349
Consume a unicode-range token</h4>
13501350

13511351
This section describes how to <dfn>consume a unicode-range token</dfn>.
@@ -1407,7 +1407,7 @@ Consume a unicode-range token</h4>
14071407
</ol>
14081408

14091409

1410-
<h4 id="consume-an-escaped-code-point">
1410+
<h4 id="consume-escaped-code-point">
14111411
Consume an escaped code point</h4>
14121412

14131413
This section describes how to <dfn>consume an escaped code point</dfn>.
@@ -1554,7 +1554,7 @@ Check if three code points would start a number</h4>
15541554
</dl>
15551555

15561556

1557-
<h4 id="consume-a-name">
1557+
<h4 id="consume-name">
15581558
Consume a name</h4>
15591559

15601560
This section describes how to <dfn>consume a name</dfn> from a stream of <a>code points</a>.
@@ -1588,7 +1588,7 @@ Consume a name</h4>
15881588
</dl>
15891589

15901590

1591-
<h4 id="consume-a-number">
1591+
<h4 id="consume-number">
15921592
Consume a number</h4>
15931593

15941594
This section describes how to <dfn>consume a number</dfn> from a stream of <a>code points</a>.
@@ -1652,7 +1652,7 @@ Consume a number</h4>
16521652
</ol>
16531653

16541654

1655-
<h4 id="convert-a-string-to-a-number">
1655+
<h4 id="convert-string-to-number">
16561656
Convert a string to a number</h4>
16571657

16581658
This section describes how to <dfn>convert a string to a number</dfn>.
@@ -1709,7 +1709,7 @@ Convert a string to a number</h4>
17091709
Return the number <code>s·(i + f·10<sup>-d</sup>)·10<sup>te</sup></code>.
17101710

17111711

1712-
<h4 id="consume-the-remnants-of-a-bad-url">
1712+
<h4 id="consume-remnants-of-bad-url">
17131713
Consume the remnants of a bad url</h4>
17141714

17151715
This section describes how to <dfn>consume the remnants of a bad url</dfn> from a stream of <a>code points</a>,
@@ -2145,7 +2145,7 @@ Parse something according to a CSS grammar</h4>
21452145
</ol>
21462146

21472147

2148-
<h4 id="parse-a-stylesheet">
2148+
<h4 id="parse-stylesheet">
21492149
Parse a stylesheet</h4>
21502150

21512151
To <dfn export>parse a stylesheet</dfn> from a stream of tokens:
@@ -2164,7 +2164,7 @@ Parse a stylesheet</h4>
21642164
Return the stylesheet.
21652165
</ol>
21662166

2167-
<h4 id="parse-a-list-of-rules">
2167+
<h4 id="parse-list-of-rules">
21682168
Parse a list of rules</h4>
21692169

21702170
To <dfn export>parse a list of rules</dfn> from a stream of tokens:
@@ -2177,7 +2177,7 @@ Parse a list of rules</h4>
21772177
Return the returned list.
21782178
</ol>
21792179

2180-
<h4 id="parse-a-rule">
2180+
<h4 id="parse-rule">
21812181
Parse a rule</h4>
21822182

21832183
To <dfn export>parse a rule</dfn> from a stream of tokens:
@@ -2212,7 +2212,7 @@ Parse a rule</h4>
22122212
Otherwise, return a syntax error.
22132213
</ol>
22142214

2215-
<h4 id="parse-a-declaration">
2215+
<h4 id="parse-declaration">
22162216
Parse a declaration</h4>
22172217

22182218
Note: Unlike "<a>Parse a list of declarations</a>",
@@ -2235,7 +2235,7 @@ Parse a declaration</h4>
22352235
Otherwise, return a syntax error.
22362236
</ol>
22372237

2238-
<h4 id="parse-a-list-of-declarations">
2238+
<h4 id="parse-list-of-declarations">
22392239
Parse a list of declarations</h4>
22402240

22412241
Note: Despite the name,
@@ -2254,7 +2254,7 @@ Parse a list of declarations</h4>
22542254
Return the returned list.
22552255
</ol>
22562256

2257-
<h4 id="parse-a-component-value">
2257+
<h4 id="parse-component-value">
22582258
Parse a component value</h4>
22592259

22602260
To <dfn export>parse a component value</dfn>:
@@ -2283,7 +2283,7 @@ Parse a component value</h4>
22832283
return a syntax error.
22842284
</ol>
22852285

2286-
<h4 id="parse-a-list-of-component-values">
2286+
<h4 id="parse-list-of-component-values">
22872287
Parse a list of component values</h4>
22882288

22892289
To <dfn export>parse a list of component values</dfn>:
@@ -2295,7 +2295,7 @@ Parse a list of component values</h4>
22952295
Return the list.
22962296
</ol>
22972297

2298-
<h4 id="parse-a-comma-separated-list-of-component-values">
2298+
<h4 id="parse-comma-separated-list-of-component-values">
22992299
Parse a comma-separated list of component values</h4>
23002300

23012301
To <dfn export>parse a comma-separated list of component values</dfn>:
@@ -2336,7 +2336,7 @@ Parser Algorithms</h3>
23362336
it is implicitly invoked with the same list as the invoking algorithm.
23372337

23382338

2339-
<h4 id="consume-a-list-of-rules">
2339+
<h4 id="consume-list-of-rules">
23402340
Consume a list of rules</h4>
23412341

23422342
To <dfn>consume a list of rules</dfn>:
@@ -2382,7 +2382,7 @@ Consume a list of rules</h4>
23822382
</dl>
23832383

23842384

2385-
<h4 id="consume-an-at-rule">
2385+
<h4 id="consume-at-rule">
23862386
Consume an at-rule</h4>
23872387

23882388
To <dfn>consume an at-rule</dfn>:
@@ -2420,7 +2420,7 @@ Consume an at-rule</h4>
24202420
</dl>
24212421

24222422

2423-
<h4 id="consume-a-qualified-rule">
2423+
<h4 id="consume-qualified-rule">
24242424
Consume a qualified rule</h4>
24252425

24262426
To <dfn>consume a qualified rule</dfn>:
@@ -2456,7 +2456,7 @@ Consume a qualified rule</h4>
24562456
</dl>
24572457

24582458

2459-
<h4 id="consume-a-list-of-declarations">
2459+
<h4 id="consume-list-of-declarations">
24602460
Consume a list of declarations</h4>
24612461

24622462
To <dfn>consume a list of declarations</dfn>:
@@ -2500,7 +2500,7 @@ Consume a list of declarations</h4>
25002500
</dl>
25012501

25022502

2503-
<h4 id="consume-a-declaration">
2503+
<h4 id="consume-declaration">
25042504
Consume a declaration</h4>
25052505

25062506
Note: This algorithm assumes that the <a>next input token</a> has already been checked to be an <<ident-token>>.
@@ -2541,7 +2541,7 @@ Consume a declaration</h4>
25412541
</ol>
25422542

25432543

2544-
<h4 id="consume-a-component-value">
2544+
<h4 id="consume-component-value">
25452545
Consume a component value</h4>
25462546

25472547
To <dfn>consume a component value</dfn>:
@@ -2561,7 +2561,7 @@ Consume a component value</h4>
25612561
Otherwise, return the <a>current input token</a>.
25622562

25632563

2564-
<h4 id="consume-a-simple-block">
2564+
<h4 id="consume-simple-block">
25652565
Consume a simple block</h4>
25662566

25672567
Note: This algorithm assumes that the <a>current input token</a> has already been checked to be an <a href="#tokendef-open-curly">&lt;{-token></a>, <a href="#tokendef-open-square">&lt;[-token></a>, or <a href="#tokendef-open-paren">&lt;(-token></a>.
@@ -2590,7 +2590,7 @@ Consume a simple block</h4>
25902590
</dl>
25912591

25922592

2593-
<h4 id="consume-a-function">
2593+
<h4 id="consume-function">
25942594
Consume a function</h4>
25952595

25962596
Note: This algorithm assumes that the <a>current input token</a> has already been checked to be a <<function-token>>.
@@ -2618,7 +2618,7 @@ Consume a function</h4>
26182618

26192619

26202620

2621-
<h2 id="anb">
2621+
<h2 id="anb-microsyntax">
26222622
The <var>An+B</var> microsyntax</h2>
26232623

26242624
Several things in CSS,

0 commit comments

Comments
 (0)