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
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>,
467
+
<p> 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>,
468
468
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,
469
469
treat the <adata-link-type=dfnhref=#custom-propertytitle="custom property">custom property</a> as having its initial value for the rest of this algorithm.
470
470
471
471
<li>
472
-
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
472
+
<p> 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
473
473
is anything but the initial value,
474
474
replace the <aclass=cssdata-link-type=maybehref=#funcdef-vartitle=var()>var()</a> function by the value of the corresponding <adata-link-type=dfnhref=#custom-propertytitle="custom property">custom property</a>.
475
475
476
476
<li>
477
-
Otherwise, if the <aclass=cssdata-link-type=maybehref=#funcdef-vartitle=var()>var()</a> function has a fallback value as its second argument,
477
+
<p> Otherwise, if the <aclass=cssdata-link-type=maybehref=#funcdef-vartitle=var()>var()</a> function has a fallback value as its second argument,
478
478
replace the <aclass=cssdata-link-type=maybehref=#funcdef-vartitle=var()>var()</a> function by the fallback value.
479
479
If there are any <aclass=cssdata-link-type=maybehref=#funcdef-vartitle=var()>var()</a> references in the fallback,
480
480
<adata-link-type=dfnhref=#substitute-a-vartitle="substitute a var()">substitute</a> them as well.
481
481
482
482
<li>
483
-
Otherwise,
483
+
<p> Otherwise,
484
484
the property containing the <aclass=cssdata-link-type=maybehref=#funcdef-vartitle=var()>var()</a> function is <adata-link-type=dfnhref=#invalid-at-computed-value-timetitle="invalid at computed-value time">invalid at computed-value time</a>.
485
485
486
486
<pclass=note> Note: Other things can also make a property <adata-link-type=dfnhref=#invalid-at-computed-value-timetitle="invalid at computed-value time">invalid at computed-value time</a>.
<p> All <adata-link-type=dfnhref=#custom-propertytitle="custom property">custom property</a><adata-link-type=dfnhref=http://dev.w3.org/csswg/css-syntax-3/#declarationtitle=declarations>declarations</a> have the <adata-link-type=dfntitle=case-insensitive>case-insensitive</a> flag set.
The syntax of custom properties was changed from <spanclass=cssdata-link-type=maybetitle=var-foo>var-foo</span> to <spanclass=cssdata-link-type=maybetitle=--foo>--foo</span>.
687
+
<p> The syntax of custom properties was changed from <spanclass=cssdata-link-type=maybetitle=var-foo>var-foo</span> to <spanclass=cssdata-link-type=maybetitle=--foo>--foo</span>.
688
688
689
689
<li>
690
-
The <aclass=cssdata-link-type=maybehref=#funcdef-vartitle=var()>var()</a> function takes the full custom property name as its first argument,
690
+
<p> The <aclass=cssdata-link-type=maybehref=#funcdef-vartitle=var()>var()</a> function takes the full custom property name as its first argument,
691
691
rather than the name minus a prefix.
692
692
693
693
<li>
694
-
The CSSVariablesMap interface was removed,
694
+
<p> The CSSVariablesMap interface was removed,
695
695
in favor of a better custom-property API to be defined in the future.
0 commit comments