[css-houdini-drafts] [css-typed-om] Simplifying math expressions (#913)

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

== [css-typed-om] Simplifying math expressions ==
CSS Values & Units defines a [simplification process](https://drafts.csswg.org/css-values-4/#calc-serialize) for calc() and other math functions, but CSS Typed OM defines no such process for reification. This means that per spec a specified value of e.g. `calc(10px + 10px)` is serialized as `calc(20px)` in CSSOM, but reified with the original structure in CSS Typed OM, and hence serialized as `calc(10px + 10px)`.

According to [this comment](https://github.com/w3c/css-houdini-drafts/issues/528#issuecomment-351580587), there was an agreement, somewhere, at some point, that the simplification should not happen during serialization, but also "apply to underlying values". If so, this should be specified somewhere. Or we should explicitly require or disallow the simplification in CSS Typed OM.

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

Received on Tuesday, 2 July 2019 09:43:54 UTC