contain
The contain
CSS property indicates that an element and its contents are, as much as possible, independent from the rest of the document tree. Containment enables isolating a subsection of the DOM, providing performance benefits by limiting calculations of layout, style, paint, size, or any combination to a DOM subtree rather than the entire page. Containment can also be used to scope CSS counters and quotes.
Syntax: none | strict | content | [ [ size || inline-size ] || layout || style || paint ]
Initial value: none
| Chrome | Firefox | Safari | Edge | IE |
| :----: | :-----: | :------: | :--: | :-: |
| 52 | 69 | 15.4 | n/a | No |
Content copied to clipboard