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

I just did a quick test and looks like both Chrome and FF simplify the specified value for calcs:
```
document.body.style.width = 'calc(1px + 1px)'
document.body.style.width; // calc(2px)
```

The [calc spec](https://drafts.csswg.org/css-values-3/#calc-notation) doesn't seem to say much about this, so it looks like computed, specified and parsing all should simplify calc expressions (at least until the calc spec becomes clearer about this).

I don't know if any actual edits are required in the Typed OM spec, but we should definitely make sure that any examples involving calcs are simplified.

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

Received on Wednesday, 13 December 2017 06:33:42 UTC