[csswg-drafts] paint containment vs filter effects (#6325)

frivoal has just created a new issue for https://github.com/w3c/csswg-drafts:

== paint containment vs filter effects ==
The intent of paint containment is (among other things) that:
> If the containment box is off-screen or obscured, the UA can directly skip trying to paint its contents, as they’re guaranteed to be off-screen/obscured as well.

That doesn't seem to account for [filter effects](https://drafts.fxtf.org/filter-effects/). If you put a blur filter (for example) on an ancestor of an element of paint containment, it can spread the pixels of the contained element beyond the geometry of that element, with no particular boundary. So the contained element may be off-screen, but you still need to repaint it so that the on-screen pixels of the parent with a filter an be rendered correctly.

Is this OK because filters are a composite-time operation rather than paint-time operation, or something like that?

Is this bad and we somehow forgot to take it into account?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6325 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 31 May 2021 05:35:04 UTC