[wpt-sync] Sync PR 23418 - Use the backdrop filter's clip for synthetic effects and layers
Categories
(Core :: Web Painting, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox78 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 23418 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/23418
Details from upstream follow.
Xianzhu Wang <wangxianzhu@chromium.org> wrote:
Use the backdrop filter's clip for synthetic effects and layers
Previously for a synthetic effect and the associated synthesized mask
layer, we used the clip that introduce the synthetic effect as their
clip state, causing incorrect clipping of backdrop filters.Now use the clip of the backdrop filter for synthetic effects and
layers to avoid the problem.ClipPaintPropertyNode rounded_clip
ClipPaintPropertyNode rect_clipEffectPaintPropertyNode backdrop_filter clip=rect_clip
The cc effect tree is like
mask_isolation (backdrop filter moved here)
/
mask_effect node_for_backdrop_filterWhen we create the cc node for backdrop_filter, we find that there is
an ancestor clip (rounded_clip) needs a synthetic effect and synthesized
mask, so create mask_isolation and mask_effect nodes and a mask clip
layer. To let the backdrop filter access the correct backdrop, we move
the backdrop filter up to mask_isolation, requiring that mask_isolation
to use the backdrop_filter's clip (rect_clip) instead of the clip
(rounded_clip) that introduces the synthetic effect, to ensure the
backdrop filter is correctly clipped. This in turn requires that
mask_effect and the mask layer also use rect_clip as their clip state to
ensure proper clip hierarchy.Bug: 1077137
Change-Id: Ib9c3cc7e8db5b1b261b3a758f2fb6680e0f5ab1f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2183198
Commit-Queue: Xianzhu Wang \<wangxianzhu@chromium.org>
Reviewed-by: Philip Rogers \<pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#766158}
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 2•5 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
FAIL: 1
Chrome
FAIL: 1
Safari
FAIL: 1
Links
Details
New Tests That Don't Pass
/css/filter-effects/backdrop-filter-clip-rounded-clip.html: FAIL (Chrome: FAIL, Safari: FAIL)
Comment 5•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4c27e5fdfd1d
https://hg.mozilla.org/mozilla-central/rev/d26a6402ab4f
Description
•