Skip to content

Commit f02bb2e

Browse files
committed
[css-syntax] Now that selectors have a CSS grammar, ref that properly. Also switch the remaining <i>s to <a>.
1 parent f40fdb8 commit f02bb2e

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

css-syntax/Overview.bs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3213,27 +3213,27 @@ Defining Arbitrary Contents: the <<declaration-value>> and <<any-value>> product
32133213
CSS stylesheets</h2>
32143214

32153215
To <dfn>parse a CSS stylesheet</dfn>,
3216-
first <i>parse a stylesheet</i>.
3217-
Interpret all of the resulting top-level <i>qualified rules</i> as <i>style rules</i>, defined below.
3216+
first <a>parse a stylesheet</a>.
3217+
Interpret all of the resulting top-level <a>qualified rules</a> as <a>style rules</a>, defined below.
32183218

32193219
If any style rule is <a>invalid</a>,
32203220
or any at-rule is not recognized or is invalid according to its grammar or context,
3221-
it's a <i>parse error</i>.
3221+
it's a <a>parse error</a>.
32223222
Discard that rule.
32233223

32243224
<h3 id="style-rules">
32253225
Style rules</h3>
32263226

3227-
A <dfn>style rule</dfn> is a <i>qualified rule</i>
3227+
A <dfn>style rule</dfn> is a <a>qualified rule</a>
32283228
that associates a <a href="https://drafts.csswg.org/selectors4/#selector-list">selector list</a> [[!SELECT]]
32293229
with a list of property declarations.
32303230
They are also called
32313231
<a href="https://www.w3.org/TR/CSS21/syndata.html#rule-sets">rule sets</a> in [[!CSS21]].
32323232
CSS Cascading and Inheritance [[!CSS3CASCADE]] defines how the declarations inside of style rules participate in the cascade.
32333233

3234-
The prelude of the qualified rule is parsed as a
3235-
<a href="https://drafts.csswg.org/selectors4/#selector-list">selector list</a>.
3236-
If this results in an <a href="https://drafts.csswg.org/selectors4/#invalid">invalid selector list</a>,
3234+
The prelude of the qualified rule is <a lt="parse something according to a CSS grammar">parsed</a>
3235+
as a <<selector-list>>.
3236+
If this returns failure,
32373237
the entire style rule is <a>invalid</a>.
32383238

32393239
The content of the qualified rule’s block is parsed as a
@@ -3249,7 +3249,7 @@ Style rules</h3>
32493249

32503250
Note: The names of Custom Properties [[CSS-VARIABLES]] are case-sensitive.
32513251

3252-
<i>Qualified rules</i> at the top-level of a CSS stylesheet are style rules.
3252+
<a>Qualified rules</a> at the top-level of a CSS stylesheet are style rules.
32533253
Qualified rules in other contexts may or may not be style rules,
32543254
as defined by the context.
32553255

0 commit comments

Comments
 (0)