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
this actually parses a mixed list of declarations and at-rules,
3789
-
as CSS 2.1 does for <ahref=http://www.w3.org/TR/CSS21/page.html#page-box><aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-page-3/#at-ruledef-pagetitle=@page>@page</a></a>.
3789
+
as CSS 2.1 does for <aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-page-3/#at-ruledef-pagetitle=@page>@page</a>.
3790
3790
Unexpected at-rules (which could be all of them, in a given context)
3791
3791
are invalid and should be ignored by the consumer.</p>
<p>To <dfndata-dfn-type=dfndata-noexport="" id=parse-a-css-stylesheet>parse a CSS stylesheet<aclass=self-linkhref=#parse-a-css-stylesheet></a></dfn>,
4605
-
first <adata-link-type=dfnhref=#parse-a-stylesheettitle="parse a stylesheet">parse a stylesheet</a>.
4606
-
Interpret all of the resulting top-level <adata-link-type=dfnhref=#qualified-ruletitle="qualified rules">qualified rules</a> as <adata-link-type=dfnhref=#style-ruletitle="style rules">style rules</a>, defined below.</p>
4605
+
first <i>parse a stylesheet</i>.
4606
+
Interpret all of the resulting top-level <i>qualified rules</i> as <i>style rules</i>, defined below.</p>
4607
4607
4608
4608
<p>If any style rule is invalid,
4609
4609
or any at-rule is not recognized or is invalid according to its grammar or context,
4610
-
it’s a <adata-link-type=dfnhref=#parse-errortitle="parse error">parse error</a>.
<p>A <dfndata-dfn-type=dfndata-noexport="" id=style-rule>style rule<aclass=self-linkhref=#style-rule></a></dfn> is a <adata-link-type=dfnhref=#qualified-ruletitle="qualified rule">qualified rule</a>
4616
+
<p>A <dfndata-dfn-type=dfndata-noexport="" id=style-rule>style rule<aclass=self-linkhref=#style-rule></a></dfn> is a <i>qualified rule</i>
4617
4617
that associates a <ahref=http://dev.w3.org/csswg/selectors4/#selector-list>selector list</a><adata-biblio-type=normativedata-link-type=bibliohref=#biblio-selecttitle=SELECT>[SELECT]</a>
<p>The content of the qualified rule’s block is parsed as a
4629
-
<adata-link-type=dfnhref=#parse-a-list-of-declarationstitle="parse a list of declarations">list of declarations</a>.
4629
+
<ititle="parse a list of declarations">list of declarations</i>.
4630
4630
Unless defined otherwise by another specification or a future level of this specification,
4631
4631
at-rules in that list are invalid
4632
4632
and must be ignored.
4633
4633
Declaration for an unknown CSS property
4634
4634
or whose value does not match the syntax defined by the property are invalid
4635
4635
and must be ignored.
4636
4636
The validity of the style rule’s contents have no effect on the validity of the style rule itself.
4637
-
Unless otherwise specified, property names are <adata-link-type=dfnhref=#ascii-case-insensitivetitle="ASCII case-insensitive">ASCII case-insensitive</a>.</p>
4637
+
Unless otherwise specified, property names are <i>ASCII case-insensitive</i>.</p>
4638
4638
4639
4639
<pclass=note>Note: The names of Custom Properties <adata-biblio-type=informativedata-link-type=bibliohref=#biblio-css-variablestitle=CSS-VARIABLES>[CSS-VARIABLES]</a> are case-sensitive.</p>
4640
4640
4641
-
<p><adata-link-type=dfnhref=#qualified-ruletitle="Qualified rules">Qualified rules</a> at the top-level of a CSS stylesheet are style rules.
4641
+
<p><i>Qualified rules</i> at the top-level of a CSS stylesheet are style rules.
4642
4642
Qualified rules in other contexts may or may not be style rules,
0 commit comments