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
<li><ahref=#charset-rule><spanclass=secno>8.2</span> The <spanclass=cssdata-link-type=maybetitle=@charset>@charset</span> Rule</a></ul>
180
+
<li><ahref=#charset-rule><spanclass=secno>8.2</span> The <aclass=cssdata-link-type=maybehref=#at-ruledef-charsettitle=@charset>@charset</a> Rule</a></ul>
<p> "<code>color: blue;</code>" is a declaration specifying that,
261
262
for the elements that match the selector,
262
263
their <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-color-3/#color0title=color>color</a> property should have the value <spanclass=cssdata-link-type=maybetitle=blue>blue</span>.
263
-
Similarly, their <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-text-decor-3/#text-decorationtitle=text-decoration>text-decoration</a> property should have the value <spanclass=cssdata-link-type=maybetitle=underline>underline</span>.
264
+
Similarly, their <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-text-decor-3/#propdef-text-decorationtitle=text-decoration>text-decoration</a> property should have the value <spanclass=cssdata-link-type=maybetitle=underline>underline</span>.
264
265
</div>
265
266
266
267
<p> At-rules are all different, but they have a basic structure in common.
"<adata-link-type=dfnhref=#parse-a-component-value0title="parse a component value">Parse a component value</a>" is for things that need to consume a single value,
3641
-
like the parsing rules for <aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-values-3/#attrtitle=attr()>attr()</a>.
3642
+
like the parsing rules for <aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-values-3/#funcdef-attrtitle=attr()>attr()</a>.
3642
3643
3643
3644
<li>
3644
3645
"<adata-link-type=dfnhref=#parse-a-list-of-component-values0title="parse a list of component values">Parse a list of component values</a>" is for the contents of presentational attributes,
Parse a comma-separated list of component values</span><aclass=self-linkhref=#parse-a-comma-separated-list-of-component-values></a></h4>
3811
+
3812
+
<p> To <dfndata-dfn-type=dfndata-export="" id=parse-a-comma-separated-list-of-component-values0>parse a comma-separated list of component values<aclass=self-linkhref=#parse-a-comma-separated-list-of-component-values0></a></dfn>:
3813
+
3814
+
<ol>
3815
+
<li>
3816
+
Let <var>list of cvls</var> be an initially empty list of component value lists.
3817
+
3818
+
<li>
3819
+
Repeatedly <adata-link-type=dfnhref=#consume-a-component-value0title="consume a component value">consume a component value</a> until an <aclass="production css-code" data-link-type=typehref=#typedef-eof-tokentitle="<eof-token>"><EOF-token></a> or <aclass="production css-code" data-link-type=typehref=#typedef-comma-tokentitle="<comma-token>"><comma-token></a> is returned,
3820
+
appending the returned values (except the final <aclass="production css-code" data-link-type=typehref=#typedef-eof-tokentitle="<eof-token>"><EOF-token></a> or <aclass="production css-code" data-link-type=typehref=#typedef-comma-tokentitle="<comma-token>"><comma-token></a>) into a list.
3821
+
Append the list to <var>list of cvls</var>.
3822
+
3823
+
<p> If it was a <aclass="production css-code" data-link-type=typehref=#typedef-comma-tokentitle="<comma-token>"><comma-token></a> that was returned,
<p> This is a complete and sufficient definition of the rule’s grammar.
4416
4439
4417
4440
<p> For another example,
4418
-
<spanclass=cssdata-link-type=maybetitle=@keyframes>@keyframes</span> rules are more complex,
4441
+
<aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-animations-1/#at-ruledef-keyframestitle=@keyframes>@keyframes</a> rules are more complex,
4419
4442
interpreting their prelude as a name and containing keyframes rules in their block
and unrecognized rules must similarly be removed from the rule’s value.
4450
4473
4451
4474
<divclass=example>
4452
-
For example, the grammar for <spanclass=cssdata-link-type=maybetitle=@keyframes>@keyframes</span> in the previous example must,
4475
+
For example, the grammar for <aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-animations-1/#at-ruledef-keyframestitle=@keyframes>@keyframes</a> in the previous example must,
4453
4476
in addition to what is written there,
4454
4477
define that the only allowed rules are <aclass="production css-code" data-link-type=typetitle="<keyframe-rule>"><keyframe-rule></a>s,
must further define that they accept as declarations all animatable CSS properties,
4460
-
plus the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-animations-1/#animation-timing-functiontitle=animation-timing-function>animation-timing-function</a> property,
4483
+
plus the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-animations-1/#propdef-animation-timing-functiontitle=animation-timing-function>animation-timing-function</a> property,
For example, qualified rules inside <aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-conditional-3/#at-ruledef-mediatitle=@media>@media</a> rules <adata-biblio-type=informativedata-link-type=bibliohref=#css3-conditionaltitle=css3-conditional>[CSS3-CONDITIONAL]</a> are style rules,
4525
-
but qualified rules inside <spanclass=cssdata-link-type=maybetitle=@keyframes>@keyframes</span> rules are not <adata-biblio-type=informativedata-link-type=bibliohref=#css3-animationstitle=css3-animations>[CSS3-ANIMATIONS]</a>.
4548
+
but qualified rules inside <aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-animations-1/#at-ruledef-keyframestitle=@keyframes>@keyframes</a> rules are not <adata-biblio-type=informativedata-link-type=bibliohref=#css3-animationstitle=css3-animations>[CSS3-ANIMATIONS]</a>.
0 commit comments