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

Specification link


Unknown standards status - check spec link for status

Status in Chromium

Blink>CSS


Enabled by default (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owner

Search tags

css, css-values, min, max, clamp, comparison,

Last updated on 2021-08-16