Skip to content

"Contain: strict" not actually affecting Paint? #3

@lekevin-microsoft

Description

@lekevin-microsoft

Hey there!

I'm wondering if there's been a recent regression in Chromium, or perhaps I'm misunderstanding something regarding paint.

When I F12 Performance recording the unoptimized and optimized examples, and hover over the "Paint" section for the profile, I would expect that in the unoptimized version the entire page is affected by the paint, but not the optimized version as the optimized version would know that anything that happens inside the contain:strict won't affect anything else.

But in the optimized version for a performance profile, I see this:
image

This is after clicking on "Animate me" in the optimized example.

Am I misunderstanding something with contain: strict? I've tested this with Edge and Chrome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions