[css-houdini-drafts] [css-properties-values-api] Canonical units for computed values

andruud has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-properties-values-api] Canonical units for computed values ==
The spec currently says:

> For <custom-ident>, ident, <color>, <integer>, <angle>, <time>, <resolution> or "*" values, the computed value is as specified.

I think that's a little weird that e.g. `100ms` becomes `0.1s` for `transition-duration`, but for some reason stays `100ms` for `<time>`-registered custom properties. (And similarly for the other types). I suggest:

- For &lt;angle>, &lt;time>, &lt;resolution>: let the computed value be the specified value converted to its canonical unit, with calc resolved.
- For &lt;integer>:  resolve calc (i.e. same as &lt;number>, &lt;percentage>).
- For &lt;color>: behave like `color` property? (Not sure about this one).

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/826 using your GitHub account

Received on Thursday, 18 October 2018 10:54:25 UTC