Skip to content

Commit 6f9755c

Browse files
andruudtabatkins
authored andcommitted
[css-properties-values-api] Require var() fallbacks to match syntax. (w3c#833)
Resolves w3c#360.
1 parent f4c3598 commit 6f9755c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

css-properties-values-api/Overview.bs

+12
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,18 @@ to full URLs as described in [[!css3-values]].
589589

590590
</div>
591591

592+
593+
Fallbacks in ''var()'' references {#fallbacks-in-var-references}
594+
----------------------------------------------------------------
595+
596+
References to registered custom properties using the ''var()'' function may
597+
provide a fallback. However, the fallback value must match the
598+
[[#supported-syntax-strings|registered syntax]] of the custom property being
599+
referenced, otherwise the declaration is
600+
<a spec=css-variables>invalid at computed-value time</a>.
601+
602+
Note: This applies regardless of whether or not the fallback is being used.
603+
592604
Examples {#examples}
593605
====================
594606

0 commit comments

Comments
 (0)