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
</p><p> The initial value of a <adata-autolink="link" href="#custom-property">custom property</a> is an empty value;
235
235
that is, nothing at all.
236
-
This initial value has a special interaction with the <adata-autolink="maybe" class="css">var()</a> notation,
237
-
which is explained in the section defining <adata-autolink="maybe" class="css">var()</a>.
236
+
This initial value has a special interaction with the <adata-autolink="maybe" class="css"href="#variable-type">var()</a> notation,
237
+
which is explained in the section defining <adata-autolink="maybe" class="css"href="#variable-type">var()</a>.
238
238
239
239
</p><p> The primary purpose of <adata-autolink="link" href="#custom-property">custom properties</a> is to define <adata-autolink="link" href="#cascading-variable">cascading variables</a>.
240
240
In CSS, a <dfntitle="variable|cascading variable" id="cascading-variable">cascading variable</dfn> is a value that can be substituted into other properties,
or else a value whose meaning has no connection to the variable.)
410
411
411
-
</p><p> The <adata-autolink="link" class="production"><var><fallback></var></a> value is identical to the syntax of a <adata-autolink="link" href="#custom-property">custom property</a> value:
412
+
</p><p> The <adata-autolink="link" class="production"href="#fallback-type"><var><fallback></var></a> value is identical to the syntax of a <adata-autolink="link" href="#custom-property">custom property</a> value:
412
413
it accepts anything allowed by the core syntax of CSS
413
414
(except that, since it's a value in a function rather than a value in a declaration,
414
-
some tokens that were allowed in a <adata-autolink="link" href="#custom-property">custom property</a> don't work in a <adata-autolink="link" class="production"><var><fallback></var></a> and vice versa,
415
+
some tokens that were allowed in a <adata-autolink="link" href="#custom-property">custom property</a> don't work in a <adata-autolink="link" class="production"href="#fallback-type"><var><fallback></var></a> and vice versa,
415
416
because they'd close the function early).
416
417
417
-
</p><pclass="note"> Note: The syntax of <adata-autolink="link" class="production"><var><fallback></var></a>, like that of <adata-autolink="link" href="#custom-property">custom properties</a>, allows commas.
418
+
</p><pclass="note"> Note: The syntax of <adata-autolink="link" class="production"href="#fallback-type"><var><fallback></var></a>, like that of <adata-autolink="link" href="#custom-property">custom properties</a>, allows commas.
418
419
For example, a variable use like <adata-autolink="maybe" class="css">var(foo, red, blue)</a> defines a fallback of <adata-autolink="maybe" class="css">red, blue</a>;
419
-
that is, anything between the first comma and the end of the function is considered a <adata-autolink="link" class="production"><var><fallback></var></a> value.
420
+
that is, anything between the first comma and the end of the function is considered a <adata-autolink="link" class="production"href="#fallback-type"><var><fallback></var></a> value.
420
421
421
422
</p><p> If the variable named by the first argument is valid,
422
423
the variable's value is substituted as normal.
423
424
If the variable is invalid,
424
-
and a <adata-autolink="link" class="production"><var><fallback></var></a> was provided,
425
-
the <adata-autolink="link" class="production"><var><fallback></var></a> is substituted instead.
426
-
Otherwise, the result of evaluating the <adata-autolink="maybe" class="css">var()</a> function will mean
425
+
and a <adata-autolink="link" class="production"href="#fallback-type"><var><fallback></var></a> was provided,
426
+
the <adata-autolink="link" class="production"href="#fallback-type"><var><fallback></var></a> is substituted instead.
427
+
Otherwise, the result of evaluating the <adata-autolink="maybe" class="css"href="#variable-type">var()</a> function will mean
427
428
that the containing declaration is invalid at computed-value time.
0 commit comments