w3c / css-houdini-drafts

Mirror of https://hg.css-houdini.org/drafts
https://drafts.css-houdini.org/
Other
1.84k stars 141 forks source link

[css-typed-om] Eagerly simplification in Typed OM #1091

Closed DevSDK closed 1 year ago

DevSDK commented 1 year ago

css-values-4 mentions eagerly simplifying values and expressions. However, this seems unaddressed in the css-typed-om.

If a calc tree is constructed via Typed OM, do we need to eagerly simplify it for, eg, serialization?

tabatkins commented 1 year ago

No; it makes no mention of it because it doesn't happen. Simplification only happens as part of the CSS value computation process (specified -> computed -> used, etc).