Re: [csswg-drafts] [css-values-4] Should physical units in specified values in calc() collapse into px unit when serialized? (#3741)

> The simplification and serialization rules are now clear about what happens here.
> 
>   * At all simplification points (immediately upon parsing, at computed-value time, at used-value time), values are absolutized as much as possible, converted to their canonical unit, and then combined together. So `calc(1px + 1in)` produces `calc(97px)` right away.

The [spec § 10.13. Serialization](https://www.w3.org/TR/css-values-4/#calc-serialize) and [editor's draft § 10.13. Serialization](https://drafts.csswg.org/css-values-4/#calc-serialize) are contradicting because still saying:

"
If nodes contains any dimensions, remove them from nodes, **sort them by their units**, ordered ASCII case-insensitively, and append them to ret.
"

Reopening. I just want the spec to be updated here...

-- 
GitHub Notification of comment by TalbotG
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3741#issuecomment-1407055498 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 27 January 2023 20:44:56 UTC