File tree 1 file changed +12
-1
lines changed
css-properties-values-api 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,17 @@ Their behavior is defined in [[css-cascade-4#defaulting-keywords]].
197
197
The [=computed value=] of a [=registered custom property=]
198
198
is determined by the syntax of its [=registration=] .
199
199
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:
200
211
201
212
For <code> "<length>"</code> ,
202
213
<code> "<length-percentage>"</code> ,
@@ -244,7 +255,7 @@ the computed value is a list of the computed values of the base type.
244
255
245
256
For syntaxes specified with [[#combinator|the | combinator]] ,
246
257
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.
248
259
249
260
250
261
Animation Behavior {#animation-behavior-of-custom-properties}
You can’t perform that action at this time.
0 commit comments