The contain property allows an author to indicate that an element and its contents are, as much as possible, independent of the rest of the document tree. 2. Strong Containment: the contain property
The CSS contain property gives you a way to explain your layout to the browser, so performance optimizations can be made. However, it does come with some side effects in terms of your layout.