Skip to content

[css-properties-values-api] Canonical units for computed values, etc. #831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions css-properties-values-api/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,14 @@ For <length-percentage> values, the computed value is one of the following:
* otherwise, the computed value is a calc expression containing an absolute
length expressed in pixels, and a percentage value.

For <custom-ident>, ident, <color>, <integer>,
<angle>, <time>, <resolution> or "*" values, the
computed value is as specified.
For <color> values, the value is computed as described in
[[css-color-4#resolving-color-values]].

For <angle>, <time> and <resolution> values, the computed value is the
value expressed in its [=canonical unit=], with ''calc()'' expressions
evaluated [[css-values-4#calc-computed-value|as described in CSS Values]].

For <custom-ident>, ident, or "*" values, the computed value is as specified.

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

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

For <number> and <percentage> values which are not calc expressions, the
computed value is as specified. Calc expressions that are
<number> and <percentage> values get reduced during computation to simple
numbers and percentages respectively.
For <integer>, <number> and <percentage> values, the computed value is
one of the following:

* if the specified value is a ''calc()'' expression, the computed value is the
evaluated result of that expression.
* otherwise, the computed value is as specified.

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