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

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

From: Simon Fraser via GitHub <sysbot+gh@w3.org>
Date: Sun, 01 Dec 2019 01:16:12 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-530652786-1575162970-sysbot+gh@w3.org>
smfr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values-4] Specify simplification of min() and max() more explicitly ==
https://drafts.csswg.org/css-values-4/#calc-simplification doesn't say anything specific about `min()` and `max()` simplification, but it seems that two types of simplification could happen:

1. Sort the arguments, as sum/product node children are sorted:
`min(1vw, 1px, 2em,)` -> `min(2em, 1px, 1vw)`

2. Do partial simplification if possible:
`min(2em, 1px, 3px)` -> `min(2em, 1px)`

@tabatkins WDYT?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4550 using your GitHub account
Received on Sunday, 1 December 2019 01:16:13 UTC

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