Web platform features explorer

Style containment

Widely available since 2025-01-26
Tags: css Groups: CSS > Containment

The contain: style CSS declaration permits the browser to avoid slower layout calculations by preventing modification to counter (counter-increment and counter-set) and quotation styles (content property quote values) beyond the element's descendants.

Learning resources on MDN

Browser support