Advanced HTML & CSS
Q86 / 100

How does the CSS "contain" property (e.g. "contain: layout paint") help with rendering performance?

Correct! Well done.

Incorrect.

The correct answer is B) It tells the browser that an element's internal layout/paint/style effects do not affect (and are not affected by) the rest of the page, allowing the browser to limit the scope of recalculations to that element's subtree

B

Correct Answer

It tells the browser that an element's internal layout/paint/style effects do not affect (and are not affected by) the rest of the page, allowing the browser to limit the scope of recalculations to that element's subtree

Explanation

containment establishes a boundary so that changes inside the contained element don't require the browser to recompute layout/paint for the entire document, isolating expensive recalculations to a smaller subtree.

Progress
86/100