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
Copy file name to clipboardExpand all lines: css-syntax-3/Overview.bs
+9-7
Original file line number
Diff line number
Diff line change
@@ -3263,15 +3263,17 @@ The <<urange>> type</h3>
3263
3263
<h2 id='rule-defs'>
3264
3264
Defining Grammars for Rules and Other Values</h2>
3265
3265
3266
-
The <a href="https://www.w3.org/TR/css3-values/">Values</a> spec defines how to specify a grammar for properties.
3267
-
This section does the same, but for rules.
3266
+
[[css-values-4#value-defs]] defines how to specify a grammar for properties.
3267
+
This section extends those definitions
3268
+
to also allow specifying a grammar for rules.
3268
3269
3269
-
Just like in property grammars,
3270
-
the notation <code><foo></code> refers to the "foo" grammar term,
3271
-
assumed to be defined elsewhere.
3272
-
Substituting the <code><foo></code> for its definition results in a semantically identical grammar.
3270
+
Non-terminals representing the entire grammar of an [=at-rule=]
3271
+
are written as an @ character followed by the at-rule's name,
3272
+
between <css><</css> and <css>></css>,
3273
+
e.g. <<@media>> to represent the ''@media'' rule.
3273
3274
3274
-
For numeric data types, this type notation can annotate any range restrictions using the bracketed range notation described in the <a href="https://www.w3.org/TR/css3-values/#numeric-ranges">Values</a> spec.
3275
+
The [[css-values-4#numeric-ranges|bracketed range notation]] can be used on
3276
+
any of the numeric token non-terminals.
3275
3277
3276
3278
Several types of tokens are written literally, without quotes:
0 commit comments