Skip to content

Commit fc12fed

Browse files
committed
[css-properties-values-api] Specify the computed value of '*' syntax, and that failing to parse gives you the guaranteed-invalid value.
1 parent 9579c53 commit fc12fed

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

css-properties-values-api/Overview.bs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,17 @@ Their behavior is defined in [[css-cascade-4#defaulting-keywords]].
197197
The [=computed value=] of a [=registered custom property=]
198198
is determined by the syntax of its [=registration=].
199199

200+
If the [=registration’s=] syntax is the [=universal syntax definition=],
201+
the [=computed value=] is the same as for unregistered [=custom properties=]
202+
(either the specified value with variables substituted,
203+
or the [=guaranteed-invalid value=]).
204+
205+
Otherwise, attempt to [=CSS/parse=] the property's value
206+
according to its registered syntax.
207+
If this fails,
208+
the [=computed value=] is the [=guaranteed-invalid value=].
209+
If it succeeds,
210+
the [=computed value=] depends on the specifics of the syntax:
200211

201212
For <code>"&lt;length>"</code>,
202213
<code>"&lt;length-percentage>"</code>,
@@ -244,7 +255,7 @@ the computed value is a list of the computed values of the base type.
244255

245256
For syntaxes specified with [[#combinator|the | combinator]],
246257
the computed value is given by applying the computed-value rules
247-
for the first clause that matches to the specified value.
258+
for the first clause that matches the value.
248259

249260

250261
Animation Behavior {#animation-behavior-of-custom-properties}

0 commit comments

Comments
 (0)