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

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?

Questions:

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