contain CSS property - CSS | MDN
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,...
developer.mozilla.org