Web features explorer

contain

Widely available since 2024-09-14
Tags: css Groups: CSS > Containment

The contain CSS property sets limits to the scope of styles, layout, and paint rendering for speed and efficiency. The none keyword value disables containment, strict is equivalent to contain: size layout style paint, and content is equivalent to contain: layout style paint.

Learning resources on MDN

Browser support (view on caniuse.com)