Skip to content

Commit aaa7680

Browse files
committed
[css-syntax-3] Fix Bikeshed errors.
1 parent c987ff2 commit aaa7680

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

css-syntax-3/Overview.bs

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ Ignored Vars: +b, -b, foo
2121
spec:css-text-decor-3; type:property; text:text-decoration
2222
spec:css-color-3; type:property; text:color
2323
spec:css-transforms-1; type:function; text:translatex()
24-
spec:infra; type:dfn; text:string
24+
spec:html; type:element; text:a
25+
spec:infra; type:dfn;
26+
text:string
27+
text:list
2528
</pre>
2629

2730
<h2 id="intro">
@@ -1621,8 +1624,8 @@ Parsing</h2>
16211624

16221625
The items that can appear in the tree are:
16231626

1624-
<dl>
1625-
<dt><dfn export>at-rule</dfn>
1627+
<dl export dfn-for=CSS>
1628+
<dt><dfn>at-rule</dfn>
16261629
<dd>
16271630
An at-rule has a name,
16281631
a prelude consisting of a list of component values,
@@ -1634,7 +1637,7 @@ Parsing</h2>
16341637
how to parse it
16351638
(preferably using one of the parser algorithms or entry points defined in this specification).
16361639

1637-
<dt><dfn export>qualified rule</dfn>
1640+
<dt><dfn>qualified rule</dfn>
16381641
<dd>
16391642
A qualified rule has
16401643
a prelude consisting of a list of component values,
@@ -1644,7 +1647,7 @@ Parsing</h2>
16441647
where the prelude is a selector [[SELECT]]
16451648
and the block a <a lt="parse a list of declarations">list of declarations</a>.
16461649

1647-
<dt><dfn export>declaration</dfn>
1650+
<dt><dfn>declaration</dfn>
16481651
<dd>
16491652
A declaration has a name,
16501653
a value consisting of a list of component values,
@@ -1657,11 +1660,11 @@ Parsing</h2>
16571660
instead, it is a product of where the declaration appears,
16581661
and is defined by the respective specifications defining the given rule.)
16591662

1660-
<dt><dfn export>component value</dfn>
1663+
<dt><dfn>component value</dfn>
16611664
<dd>
1662-
A component value is one of the preserved tokens,
1663-
a function,
1664-
or a simple block.
1665+
A component value is one of the [=preserved tokens=],
1666+
a [=function=],
1667+
or a [=simple block=].
16651668

16661669
<dt><dfn>preserved tokens</dfn>
16671670
<dd>
@@ -1671,22 +1674,22 @@ Parsing</h2>
16711674
<a href="#tokendef-open-paren">&lt;(-token></a>s,
16721675
and <a href="#tokendef-open-square">&lt;[-token></a>s.
16731676

1674-
Note: The non-preserved tokens listed above are always consumed into higher-level objects,
1677+
Note: The non-[=preserved tokens=] listed above are always consumed into higher-level objects,
16751678
either functions or simple blocks,
16761679
and so never appear in any parser output themselves.
16771680

16781681
Note: The tokens <a href="#tokendef-close-curly">&lt;}-token></a>s, <a href="#tokendef-close-paren">&lt;)-token></a>s, <a href="#tokendef-close-square">&lt;]-token></a>, <<bad-string-token>>, and <<bad-url-token>> are always parse errors,
16791682
but they are preserved in the token stream by this specification to allow other specs,
16801683
such as Media Queries,
1681-
to define more fine-grainted error-handling
1684+
to define more fine-grained error-handling
16821685
than just dropping an entire declaration or block.
16831686

1684-
<dt><dfn export>function</dfn>
1687+
<dt><dfn>function</dfn>
16851688
<dd>
16861689
A function has a name
16871690
and a value consisting of a list of component values.
16881691

1689-
<dt><dfn export>simple block</dfn>
1692+
<dt><dfn>simple block</dfn>
16901693
<dd>
16911694
A simple block has an associated token (either a <a href="#tokendef-open-square">&lt;[-token></a>, <a href="#tokendef-open-paren">&lt;(-token></a>, or <a href="#tokendef-open-curly">&lt;{-token></a>)
16921695
and a value consisting of a list of component values.
@@ -2013,7 +2016,7 @@ Parse a stylesheet</h4>
20132016
Create a new stylesheet.
20142017

20152018
<li>
2016-
<a>Consume a list of rules</a> from the stream of tokens, with the <var>top-level flag</var> set.
2019+
<a>Consume a list of rules</a> from the stream of tokens, with the top-level flag set.
20172020
Let the return value be <var>rules</var>.
20182021

20192022
<li>
@@ -2230,7 +2233,7 @@ Consume a list of rules</h4>
22302233
<dt><<CDO-token>>
22312234
<dt><<CDC-token>>
22322235
<dd>
2233-
If the <dfn><var>top-level flag</var></dfn> is set,
2236+
If the <var>top-level flag</var> is set,
22342237
do nothing.
22352238

22362239
Otherwise,
@@ -2539,7 +2542,7 @@ The <var>An+B</var> microsyntax</h2>
25392542
allowing an author to easily indicate single elements
25402543
or all elements at regularly-spaced intervals in a list.
25412544

2542-
The <dfn export>An+B</dfn> notation defines an integer step (<dfn>A</dfn>) and offset (<dfn>B</dfn>),
2545+
The <dfn export>An+B</dfn> notation defines an integer step (|A|) and offset (|B|),
25432546
and represents the <var>An+B</var>th elements in a list,
25442547
for every positive integer or zero value of <var>n</var>,
25452548
with the first element in the list having index 1 (not 0).
@@ -3160,7 +3163,7 @@ Defining Arbitrary Contents: the <<declaration-value>> and <<any-value>> product
31603163
<h2 id="css-stylesheets">
31613164
CSS stylesheets</h2>
31623165

3163-
To <dfn>parse a CSS stylesheet</dfn>,
3166+
To <dfn export>parse a CSS stylesheet</dfn>,
31643167
first <a>parse a stylesheet</a>.
31653168
Interpret all of the resulting top-level <a>qualified rules</a> as <a>style rules</a>, defined below.
31663169

@@ -3172,7 +3175,7 @@ CSS stylesheets</h2>
31723175
<h3 id="style-rules">
31733176
Style rules</h3>
31743177

3175-
A <dfn>style rule</dfn> is a <a>qualified rule</a>
3178+
A <dfn export>style rule</dfn> is a <a>qualified rule</a>
31763179
that associates a <a>selector list</a> [[!SELECT]]
31773180
with a list of property declarations.
31783181
They are also called

0 commit comments

Comments
 (0)