Skip to content

Commit 8a254f9

Browse files
committed
[css-syntax] Add additional example about @font-face.
1 parent f3f7686 commit 8a254f9

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

css-syntax/Overview.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4244,15 +4244,21 @@ <h3 id=declaration-rule-list><span class=secno>7.1. </span> Defining Block
42444244
<code>!important</code> is valid and has its usual effect on the cascade
42454245
origin of the property.
42464246

4247+
<div class=example> For example, the grammar for ‘<code
4248+
class=css>@font-face</code>’ in the previous example must, in addition
4249+
to what is written there, define that the allowed declarations are the
4250+
descriptors defined in the Fonts spec.</div>
4251+
42474252
<p> For rules that use <a
42484253
href="#ltrule-list"><var>&lt;rule-list></var></a>, the spec for the rule
42494254
must define what types of rules are valid inside the rule, same as <a
42504255
href="#ltdeclaration-list"><var>&lt;declaration-list></var></a>, and
42514256
unrecognized rules must similarly be removed from the rule's value.
42524257

4253-
<div class=example> For example, the grammar in the previous example must,
4254-
in addition to what is written there, define that the only allowed rules
4255-
are <var>&lt;keyframe-rule></var>s, which are defined as:
4258+
<div class=example> For example, the grammar for ‘<code
4259+
class=css>@keyframes</code>’ in the previous example must, in addition
4260+
to what is written there, define that the only allowed rules are
4261+
<var>&lt;keyframe-rule></var>s, which are defined as:
42564262
<pre>&lt;keyframe-rule> = &lt;keyframe-selector> { &lt;declaration-list> }</pre>
42574263

42584264
<p> Keyframe rules, then, must further define that they accept as

css-syntax/Overview.src.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3114,14 +3114,20 @@ <h3 id='declaration-rule-list'>
31143114
properties containing <code>!important</code> are automatically invalid;
31153115
otherwise using <code>!important</code> is valid and has its usual effect on the cascade origin of the property.
31163116

3117+
<div class='example'>
3118+
For example, the grammar for ''@font-face'' in the previous example must,
3119+
in addition to what is written there,
3120+
define that the allowed declarations are the descriptors defined in the Fonts spec.
3121+
</div>
3122+
31173123
<p>
31183124
For rules that use <var>&lt;rule-list></var>,
31193125
the spec for the rule must define what types of rules are valid inside the rule,
31203126
same as <var>&lt;declaration-list></var>,
31213127
and unrecognized rules must similarly be removed from the rule's value.
31223128

31233129
<div class='example'>
3124-
For example, the grammar in the previous example must,
3130+
For example, the grammar for ''@keyframes'' in the previous example must,
31253131
in addition to what is written there,
31263132
define that the only allowed rules are <var>&lt;keyframe-rule></var>s,
31273133
which are defined as:

0 commit comments

Comments
 (0)