css.properties

contain

The contain property allows optimizations by indicating that the element and its contents are independent.

Formal Syntax

none | strict | content | [ [size | inline-size] || layout || style || paint ] | view-transition

See specification

Browser Support

standard | MDN ยท Spec

FeatureChromeFirefoxSafariEdge
contain526915.479
content526915.479
inline-size10510116105
layout526915.479
none526915.479
paint526915.479
size526915.479
strict526915.479
style5210315.479

Related Properties