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
The <code><an+b></code> type</a></ul><li><ahref=#rule-defs><spanclass=secno>7</span>
117
117
Defining Grammars for Rules and Other Values</a><ulclass=toc><li><ahref=#declaration-rule-list><spanclass=secno>7.1</span>
118
-
Defining Block Contents: the <var><declaration-list></var>, <var><rule-list></var>, and <var><stylesheet></var> productions</a></ul><li><ahref=#css-stylesheets><spanclass=secno>8</span>CSS stylesheets</a><ulclass=toc><li><ahref=#style-rules><spanclass=secno>8.1</span>Style rules</a><li><ahref=#charset-rules><spanclass=secno>8.2</span><spanclass=cssdata-autolink=maybe>@charset</span> rules</a><li><ahref=#other-at-rules-rules><spanclass=secno>8.3</span>Other at-rules rules</a></ul><li><ahref=#serialization><spanclass=secno>9</span>Serialization</a><ulclass=toc><li><ahref=#serializing-anb><spanclass=secno>9.1</span>
118
+
Defining Block Contents: the <spanclass=productiondata-autolink=link><var><declaration-list></var></span>, <spanclass=productiondata-autolink=link><var><rule-list></var></span>, and <spanclass=productiondata-autolink=link><var><stylesheet></var></span> productions</a></ul><li><ahref=#css-stylesheets><spanclass=secno>8</span>
Serializing <var><an+b></var></a></ul><li><ahref=#changes><spanclass=secno>10</span>Changes from CSS 2.1 and Selectors Level 3</a><li><ahref=#acknowledgments><spanclass=secno></span>
Defining Block Contents: the <var><declaration-list></var>, <var><rule-list></var>, and <var><stylesheet></var> productions</span><aclass=section-linkhref=#declaration-rule-list>§</a></h3>
2606
+
Defining Block Contents: the <aclass=productiondata-autolink=linkhref=#declaration-list><var><declaration-list></var></a>, <aclass=productiondata-autolink=linkhref=#rule-list><var><rule-list></var></a>, and <aclass=productiondata-autolink=linkhref=#stylesheet><var><stylesheet></var></a> productions</span><aclass=section-linkhref=#declaration-rule-list>§</a></h3>
2602
2607
2603
2608
<p> The CSS parser is agnostic as to the contents of blocks,
2604
2609
such as those that come at the end of some at-rules.
2605
2610
Defining the generic grammar of the blocks in terms of tokens is non-trivial,
2606
2611
but there are dedicated and unambiguous algorithms defined for parsing this.
2607
2612
2608
-
<p> The <dfndata-dfn-type=productionid=declaration-list><var><declaration-list></var></dfn> production represents a list of declarations.
2613
+
<p> The <dfndata-dfn-type=productionid=declaration-list><declaration-list></dfn> production represents a list of declarations.
2609
2614
It may only be used in grammars as the sole value in a block,
2610
2615
and represents that the contents of the block must be parsed using the <ahref=#consume-a-list-of-declarations0>consume a list of declarations</a> algorithm.
2611
2616
2612
-
<p> Similarly, the <dfndata-dfn-type=productionid=rule-list><var><rule-list></var></dfn> production represents a list of rules,
2617
+
<p> Similarly, the <dfndata-dfn-type=productionid=rule-list><rule-list></dfn> production represents a list of rules,
2613
2618
and may only be used in grammars as the sole value in a block.
2614
2619
It represents that the contents of the block must be parsed using the <ahref=#consume-a-list-of-rules0>consume a list of rules</a> algorithm.
2615
2620
2616
-
<p> Finally, the <dfndata-dfn-type=productionid=stylesheet><var><stylesheet></var></dfn> production represents a list of rules.
2617
-
It is identical to <var><rule-list></var>,
2621
+
<p> Finally, the <dfndata-dfn-type=productionid=stylesheet><stylesheet></dfn> production represents a list of rules.
2622
+
It is identical to <aclass=productiondata-autolink=linkhref=#rule-list><var><rule-list></var></a>,
2618
2623
except that blocks using it default to accepting all rules
2619
2624
that aren't otherwise limited to a particular context.
2620
2625
@@ -2623,24 +2628,24 @@ <h3 data-level=7.1 id=declaration-rule-list><span class=secno>7.1 </span><span c
<p> It additionally defines a restriction that the <var><stylesheet></var> can not contain <spanclass=cssdata-autolink=maybe>@media</span> rules,
<p> It additionally defines a restriction that the <aclass=productiondata-autolink=linkhref=#stylesheet><var><stylesheet></var></a> can not contain <spanclass=cssdata-autolink=maybe>@media</span> rules,
2687
2692
which causes them to be dropped from the outer rule's value if they appear.
<dfndata-dfn-type=linkid=style-rules0title="style rule|style rules">Style rules</dfn> are <ahref=#qualified-rule>qualified rules</a>
2709
+
<dfndata-dfn-type=linkid=style-rules0title="style rule">Style rules</dfn> are <ahref=#qualified-rule>qualified rules</a>
2703
2710
that associate a <ahref=http://dev.w3.org/csswg/selectors4/#selector-list>selector list</a><adata-autolink=bibliodata-biblio-type=normativehref=#selecttitle=SELECT>[SELECT]</a>
but not they’re not inside <spanclass=cssdata-autolink=maybe>@keyframes</span> rules <adata-autolink=bibliodata-biblio-type=informativehref=#css3-animationstitle=CSS3-ANIMATIONS>[CSS3-ANIMATIONS]</a>.
<dfndata-dfn-type=at-ruleid=charset-rules0><spanclass=cssdata-autolink=maybe>@charset</span> rules</dfn> are <ahref=#at-rule>at-rules</a> whose name is an <ahref=#ascii-case-insensitive>ASCII case-insensitive</a> match for "charset".
Margin rules <adata-autolink=bibliodata-biblio-type=informativehref=#css3pagetitle=CSS3PAGE>[CSS3PAGE]</a> must be directly inside a <spanclass=cssdata-autolink=maybe>@page</span> rule.
0 commit comments