Web platform features explorer

Inline-size containment

Widely available since 2025-03-12
Tags: css Groups: CSS > Containment

The contain: inline-size CSS declaration prevents the element's inline dimension from being set by the element's contents. This permits the browser to avoid slower layout calculations.

Learning resources on MDN

Browser support