Skip to content

Commit 49b9ddd

Browse files
committed
Removed the paragraph+example about reserving everything starting with var-*. I'm already using a different pattern for it with parent-var().
--HG-- extra : rebase_source : bbb826c1533ebf05da86bc0a095a0b5d2047ce0e
1 parent 8637229 commit 49b9ddd

2 files changed

Lines changed: 0 additions & 51 deletions

File tree

css-variables/Overview.html

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -333,30 +333,6 @@ <h2 id=defining-variables><span class=secno>2. </span> Defining Variables
333333
properties</i></a> or attach a specific effect to them beyond the bare
334334
minimum that comes from them being valid properties.
335335

336-
<p> This specification reserves the use of all function tokens starting
337-
with the prefix "var" within variable properties. Authors must not use any
338-
such functions except as defined in this specification or future updates.
339-
If a variable property contains such a function, it must match the grammar
340-
defined in this specification or future updates; the use of such a
341-
function that does not follow the grammar, or that utilizes such a
342-
function that is not yet defined, makes the variable property invalid and
343-
it must be ignored.
344-
345-
<div class=example>
346-
<p> For example, even though this spec doesn't define a ‘<code
347-
class=css>var-inherit()</code>’ function, that name is reserved by
348-
default and cannot be used. Similarly, the ‘<code
349-
class=css>var()</code>’ function <em>is</em> defined by this spec, so
350-
any use of it must match the definition in the spec. The following
351-
property declarations are thus invalid:
352-
353-
<pre>
354-
:root {
355-
var-foo: var-inherit(bar); /* Use of reserved, but undefined, function. */
356-
var-foo: var(bar, baz, qux); /* Invalid use of var() function. */
357-
}</pre>
358-
</div>
359-
360336
<p> For each <a href="#variable-property"><i>variable property</i></a>,
361337
there is an associated variable with the same name save for the "var-"
362338
prefix. For example, a variable property named "var-foo" is associated

css-variables/Overview.src.html

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -188,33 +188,6 @@ <h2 id="defining-variables">
188188
Other specifications and user agents must not assign a particular meaning to <i>variable properties</i>
189189
or attach a specific effect to them beyond the bare minimum that comes from them being valid properties.
190190

191-
<p>
192-
This specification reserves the use of all function tokens starting with the prefix "var" within variable properties.
193-
Authors must not use any such functions
194-
except as defined in this specification or future updates.
195-
If a variable property contains such a function,
196-
it must match the grammar defined in this specification or future updates;
197-
the use of such a function that does not follow the grammar,
198-
or that utilizes such a function that is not yet defined,
199-
makes the variable property invalid and it must be ignored.
200-
201-
<div class='example'>
202-
<p>
203-
For example,
204-
even though this spec doesn't define a ''var-inherit()'' function,
205-
that name is reserved by default and cannot be used.
206-
Similarly,
207-
the ''var()'' function <em>is</em> defined by this spec,
208-
so any use of it must match the definition in the spec.
209-
The following property declarations are thus invalid:
210-
211-
<pre>
212-
:root {
213-
var-foo: var-inherit(bar); /* Use of reserved, but undefined, function. */
214-
var-foo: var(bar, baz, qux); /* Invalid use of var() function. */
215-
}</pre>
216-
</div>
217-
218191
<p>
219192
For each <i>variable property</i>,
220193
there is an associated variable with the same name save for the "var-" prefix.

0 commit comments

Comments
 (0)