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

Re: [csswg-drafts] [css-values-4] Should simplification of Sum nodes convert to canonical units? (#4505)

From: Simon Fraser via GitHub <sysbot+gh@w3.org>
Date: Fri, 15 Nov 2019 05:51:04 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-554223009-1573797063-sysbot+gh@w3.org>
Some concrete examples where implementations seem to disagree. How do the following serialize?

- ``min(1)``: ``min(1)`` or ``1``?
- ``min(1, 2)``: ``min(1, 2)`` or ``1``?
- ``min(min(1))``: ``min(min(1))``, ``min(1)`` or ``1``?
- ``calc(min(1))``: ``calc(min(1))``, ``min(1)`` or ``1`` or other?


1. Should simplification ever remove all the math functions?
2. Should nested math functions of different types be simplified, i.e. is it OK to simplify ``calc(calc(1))`` but not ``calc(min(1))``

@tabatkins the note at https://drafts.csswg.org/css-values-4/#calc-serialize says this is under discussion, but is there anything more recent than 2016?

GitHub Notification of comment by smfr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4505#issuecomment-554223009 using your GitHub account
Received on Friday, 15 November 2019 05:51:06 UTC

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