An element with backdrop-filter that sits inside nested
ancestors with border-radius + overflow: hidden
is not clipped to the inner ancestor's rounded corners. The hoisted
backdrop fill paints into the outermost synthesized render surface, where
the per-quad fast rounded-corner clips on the inner synthetic effects
cannot reach it. Result: rectangular artifacts in the corners where the
rounded clip was supposed to cut.
When synthesizing effect nodes for a backdrop-filter chain, collect the
inner plain rounded-rect clips, project them into the outermost clip's
transform space, and fold them into the DstIn mask layer of the outermost
synthesized effect. The inner synthetic effects become vestigial and are
skipped. Behind the BackdropFilterInnerRoundedClips kill
switch (status: "stable"); re-enables three WPT reftests that
were on TestExpectations.
Nested border-radius + overflow:hidden:
#outer (10px) › #inner (25px) ›
#backdrop-source (magenta) + #backdrop-filter
with backdrop-filter: invert(1). Inversion of magenta =>
green, which must be clipped to #inner's 25px radius.
crbug.com/40890814 -- original report (filed 2023-02-02)
CL 8605447 -- Clip backdrop-filter by nested ancestor border-radius
WPT reftests re-enabled: backdrop-filter-nested-border-radius-clip{,-3,-4}.html