W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2019

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Thu, 03 Oct 2019 22:29:57 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-538153829-1570141796-sysbot+gh@w3.org>
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.
* No excess parens, if I've written the algo correctly.

GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3741#issuecomment-538153829 using your GitHub account
Received on Thursday, 3 October 2019 22:29:58 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:54 UTC