Skip to content

Commit bcf778b

Browse files
committed
[css-variables][css-extensions] Use <declaration-value> instead.
1 parent 022d24a commit bcf778b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

css-extensions/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Custom Properties</h2>
157157
<pre>
158158
@custom-property --foo {
159159
scope: [ inherit | local ];
160-
initial: <<any-value>>*;
160+
initial: <<declaration-value>>*;
161161
value: <<length>> <<length>> <<color>>;
162162
/* Literally, define a simplistic definition syntax.
163163
OR FULL CSS PROPERTY GRAMMAR?!? */

css-variables/Overview.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Defining Custom Properties: the '--*' family of properties</h2>
5454

5555
<pre class='propdef'>
5656
Name: --*
57-
Value: <<any-value>>
57+
Value: <<declaration-value>>
5858
Initial: (nothing, see prose)
5959
Applies to: all elements
6060
Inherited: yes
@@ -128,7 +128,7 @@ Defining Custom Properties: the '--*' family of properties</h2>
128128
Custom Property Value Syntax</h3>
129129

130130
The allowed syntax for <a>custom properties</a> is extremely permissive.
131-
The <dfn>&lt;any-value></dfn> production matches <em>any</em> sequence of one or more tokens,
131+
The <<declaration-value>> production matches <em>any</em> sequence of one or more tokens,
132132
so long as the sequence does not contain
133133
<<bad-string-token>>,
134134
<<bad-url-token>>,
@@ -149,7 +149,7 @@ Custom Property Value Syntax</h3>
149149
does not prevent ''!important'' from being used,
150150
as the ''!important'' is removed before syntax checking happens.
151151

152-
Note: While <<any-value>> must represent at least one token,
152+
Note: While <<declaration-value>> must represent at least one token,
153153
that one token may be whitespace.
154154
This implies that ''--foo: ;'' is valid,
155155
and the corresponding ''var(--foo)'' call would have a single space as its substitution value,
@@ -382,7 +382,7 @@ Using Cascading Variables: the ''var()'' notation</h2>
382382
The syntax of ''var()'' is:
383383

384384
<pre class='prod'>
385-
<dfn>var()</dfn> = var( <<custom-property-name>> [, <<any-value>> ]? )
385+
<dfn>var()</dfn> = var( <<custom-property-name>> [, <<declaration-value>> ]? )
386386
</pre>
387387

388388
The ''var()'' function can be used in place of any part of a value in any property on an element.

0 commit comments

Comments
 (0)