Re: [css-houdini-drafts] [css-typed-om] can <calc> normalization from parsing/cssom simplify the expression?

Read the [calc() serialization section](https://drafts.csswg.org/css-values/#calc-serialize) - it talks about this a bit. Technically, as specified, this doesn't affect the actual values, just how you produce a string from them; in reality, these should apply to the underlying value, and we just agreed in the call today to do that too. ^_^

So yeah, at specified-value time we merge `px` values (but would leave `calc(1px + 1in)` alone); at computed-value time we convert units around to produce more identical-ness (so `calc(1px + 1in)` becomes `calc(97px)`, `calc(1px + 1em)` becomes `calc(16px)` or whatever), and then at used-value time we finish converting everything to px so we always have a `calc(Xpx)` and nothing else.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/528#issuecomment-351580587 using your GitHub account

Received on Thursday, 14 December 2017 01:32:18 UTC