Skip to content

Commit f4c3598

Browse files
andruudtabatkins
authored andcommitted
[css-properties-values-api] Canonical units for computed values, etc. (w3c#831)
Resolves issue w3c#826.
1 parent 20de222 commit f4c3598

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

css-properties-values-api/Overview.bs

+14-7
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,14 @@ For <length-percentage> values, the computed value is one of the following:
405405
* otherwise, the computed value is a calc expression containing an absolute
406406
length expressed in pixels, and a percentage value.
407407

408-
For <custom-ident>, ident, <color>, <integer>,
409-
<angle>, <time>, <resolution> or "*" values, the
410-
computed value is as specified.
408+
For <color> values, the value is computed as described in
409+
[[css-color-4#resolving-color-values]].
410+
411+
For <angle>, <time> and <resolution> values, the computed value is the
412+
value expressed in its [=canonical unit=], with ''calc()'' expressions
413+
evaluated [[css-values-4#calc-computed-value|as described in CSS Values]].
414+
415+
For <custom-ident>, ident, or "*" values, the computed value is as specified.
411416

412417
For <url> values, the computed value is one of the following:
413418

@@ -419,10 +424,12 @@ For <image> values, the computed value is as specified, except that relative
419424
URLs that appear in the value are resolved to absolute URLs as described in
420425
[[!css3-values]], and all lengths are resolved to their computed values.
421426

422-
For <number> and <percentage> values which are not calc expressions, the
423-
computed value is as specified. Calc expressions that are
424-
<number> and <percentage> values get reduced during computation to simple
425-
numbers and percentages respectively.
427+
For <integer>, <number> and <percentage> values, the computed value is
428+
one of the following:
429+
430+
* if the specified value is a ''calc()'' expression, the computed value is the
431+
evaluated result of that expression.
432+
* otherwise, the computed value is as specified.
426433

427434
For <transform-function> values (including those contained in <transform-list> values),
428435
the computed value is as specified but with all lengths resolved to their

0 commit comments

Comments
 (0)