Adds the comparison functions min(), max(), and clamp() to math expressions for numeric CSS values.
Motivation
The feature has been requested for over a year with many stars, and has been shipped in Safari. We should also make it available in Chromium.
Documentation
Specification
Status in Chromium
Enabled by default (tracking bug) in:
- Chrome for desktop release 79
- Chrome for Android release 79
- Android WebView release 79
Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
- In development
- No signal
- Shipped/Shipping
- No signals
Owner
Search tags
css, css-values, min, max, clamp, comparison,Last updated on 2020-12-21