W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2016

[csswg-drafts] [css-values] Re-adding min() and max()?

From: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Wed, 28 Sep 2016 16:12:12 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-179817848-1475079130-sysbot+gh@w3.org>
LeaVerou has just created a new issue for 

== [css-values] Re-adding min() and max()? ==
Perhaps now that Values 3 has gone to CR it's time to reconsider 
adding `min()` and `max()` back into Values 4?

Authors are doing extremely 
 [hacks](http://fvsch.com/code/css-locks/) with `calc()` to emulate 
them in `font-size` and `line-height`, which they call "CSS locks". If
 you google _CSS locks_ you will see how widespread these hacks are 
becoming, indicating a clear author need.

Furthermore, as CSS variables become more widely used, the need for 
`min()` and `max()` will become even greater. I recall some of the 
issues that [made us drop them 6 years 
 can now be solved with the _invalid at computed value time_ concept 
that Variables introduced.

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/544 using your GitHub 
Received on Wednesday, 28 September 2016 16:12:26 UTC

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