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
<pclass=note> Note: While <aclass="production css-code" data-link-type=typehref=#typedef-any-valuetitle="<any-value>"><any-value></a> must represent at least one token,
261
261
that one token may be whitespace.
262
-
This implies that <spanclass=cssdata-link-type=propdesctitle=--foo>--foo: ;</span> is valid,
262
+
This implies that <aclass=cssdata-link-type=propdesctitle=--foo>--foo: ;</a> is valid,
263
263
and the corresponding <spanclass=cssdata-link-type=maybetitle=var(--foo)>var(--foo)</span> call would have a single space as its substitution value,
264
264
but <spanclass=cssdata-link-type=maybetitle=--foo:;>--foo:;</span> is invalid.
can be made conditional with <aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-conditional-3/#at-ruledef-mediatitle=@media>@media</a> and other conditional rules,
293
293
can be used in HTML’s <code>style</code> attribute,
294
294
can be read or set using the CSSOM, etc.
295
-
Notably, they can even be transitioned or animated,
295
+
296
+
<p> Notably, they can even be transitioned or animated,
296
297
but since the UA has no way to interpret their contents,
297
298
they always use the "flips at 50%" behavior
298
299
that is used for any other pair of values that can’t be intelligently interpolated.
300
+
However, any <adata-link-type=dfnhref=#custom-propertytitle="custom property">custom property</a> used in a <aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-animations-1/#at-ruledef-keyframestitle=@keyframes>@keyframes</a> rule
which affects how it is treated when referred to via the <aclass=cssdata-link-type=maybehref=#funcdef-vartitle=var()>var()</a> function in an animation property.
<p> To <dfndata-dfn-type=dfndata-export="" id=substitute-a-var>substitute a var()<aclass=self-linkhref=#substitute-a-var></a></dfn> in a property’s value:
458
462
459
463
<ol>
464
+
<li>
465
+
If the <adata-link-type=dfnhref=#custom-propertytitle="custom property">custom property</a> named by the first argument to the <aclass=cssdata-link-type=maybehref=#funcdef-vartitle=var()>var()</a> function is <adata-link-type=dfnhref=#animation-taintedtitle=animation-tainted>animation-tainted</a>,
466
+
and the <aclass=cssdata-link-type=maybehref=#funcdef-vartitle=var()>var()</a> function is being used in the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-animations-1/#propdef-animationtitle=animation>animation</a> property or one of its longhands,
467
+
treat the <adata-link-type=dfnhref=#custom-propertytitle="custom property">custom property</a> as having its initial value for the rest of this algorithm.
468
+
460
469
<li>
461
470
If the value of the <adata-link-type=dfnhref=#custom-propertytitle="custom property">custom property</a> named by the first argument to the <aclass=cssdata-link-type=maybehref=#funcdef-vartitle=var()>var()</a> function
<tr><thscope=row><adata-property="">--*</a><td><any-value><td>(nothing, see prose)<td>all elements<td>yes<td><td>all<td>no<td>specified value with variables substituted (but see prose for "invalid variables")</table></div>
860
+
<tr><thscope=row><aclass=css-codedata-link-type=propertytitle=--*>--*</a><td><any-value><td>(nothing, see prose)<td>all elements<td>yes<td><td>all<td>no<td>specified value with variables substituted (but see prose for "invalid variables")</table></div>
0 commit comments