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

The normalization process just takes a CSS value and turns it into an object. It has no opinion on what the value is; that's determined by CSS. And in this case, the calc() spec says that expressions like `calc(1px + 1px)` are indeed simplified into `calc(2px)` at computed-value time, so it would get reflected as a `CSSMathSum(CSS.px(2))`.

On the other hand, asking for the specified value of that should return a `CSSMathSum(CSS.px(1), CSS.px(1)`; so should just doing `CSSMathValue.parse("calc(1px + 1px)")`.

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

Received on Tuesday, 12 December 2017 22:47:17 UTC