Basic use
.widget {
contain: layout paint;
}
The contain property tells the browser that an element's subtree is independent for layout, paint, or size. This can improve rendering performance for complex widgets.
.widget {
contain: layout paint;
}.widget {
contain: layout paint;
}contain is a CSS property.
Check support for your audience.
Bottom line: Prefer progressive enhancement when support varies.
Continue with container-name.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
5 people found this page helpful