[css-values] Re-adding min() and max()? · Issue #544 · w3c/csswg-drafts (original) (raw)
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 weird hacks 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 ago can now be solved with the invalid at computed value time concept that Variables introduced.