The contain CSS property allows an author to indicate that an element and its contents are independent of the rest of the document tree.
object.style.contain = "value";
<'contain'> = none | strict | content | [ size || layout || style || paint ]
Indicates that the property has no effect.
Turns on all forms of containment except style containment.
Turns on all forms of containment except size containment and style containment.
Turns on size containment.
Turns on layout containment.
Turns on style containment.
Turns on paint containment.