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

Re: [csswg-drafts] [css-values-4] Specify simplification of min() and max() more explicitly (#4550)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Sun, 01 Dec 2019 18:38:11 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-560142044-1575225490-sysbot+gh@w3.org>
How do you sort when you have sums with different units? Like `min(1em + 1vw, 1lh + 1px)`, where `em < lh < px < vw`, so which argument goes first?

And about partial simplification, it may be problematic with percentages. It may seem `min(2em, 1%, 3%)` can be simplified to `min(2em, 1%)`, but percentages can resolve to negative values, so actually 3% may be smaller than 1%!

GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4550#issuecomment-560142044 using your GitHub account
Received on Sunday, 1 December 2019 18:38:13 UTC

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