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.