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

Re: [csswg-drafts] [css-values-4] What should non-calc() math functions serialize to when they're fully resolved? (#4399)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 15 Nov 2019 21:30:06 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-554535978-1573853405-sysbot+gh@w3.org>
My preferred answers, where we just simplify everything down as fast as possible:

* `min(1)` => `calc(1)` if serialized at specified-value time; `1` at computed-value time
* `min(1, 2)` => same
* `min(min(1))` => same
* `calc(min(1))` => same

----

My acceptable answers, if I annotate the root of the tree with knowledge that it's a root node, and what function it came from:

* `min(1)` => `min(1)` at specified-value time;  `1` at computed-value time
* `min(1,2)` => `min(1,2)` at specified-value time; `1` at computed-value time
* `min(min(1))` => `min(1)` at specified-value time;  `1` at computed-value time
* `calc(min(1))` => `calc(1)` at specified-value time; `1` at computed-value time

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4399#issuecomment-554535978 using your GitHub account
Received on Friday, 15 November 2019 21:30:07 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 2 July 2022 03:21:25 UTC