[wpt-sync] Sync PR 38572 - Fix layers having a globalAlpha, shadow and filter.
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 38572 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/38572
Details from upstream follow.
Jean-Philippe Gravel <jpgravel@chromium.org> wrote:
Fix layers having a globalAlpha, shadow and filter.
When drawing shadows with a globalAlpha, both the foreground and the
shadow should be transparent. In other word, the shadow should be
visible through the foreground. This can't be done by setting the alpha
and shadow filter on the same layer since the alpha gets applied to the
result of the filter. The alpha must be applied first. To achieve this,
two nested layers must be used, with the inner one applying the
globalAlpha and the outer one applying the shadow.This was correctly implemented for normal shadows, but it turns out that
shadows can also be implemnted with a "drop-shadow" filter. This means
the same logic applies, for filters: they can't be applied on the same
layer as a globalAlpha.Change-Id: I6b59057e14661d489c0e5c81bd4dc0d6d3e406eb
Bug: 1396372
Reviewed-on: https://chromium-review.googlesource.com/4265374
WPT-Export-Revision: cd1c2c05b66314d2148b6f86613358174cb8c3d5
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 6 tests
Status Summary
Firefox
FAIL
: 4
TIMEOUT
: 2
Chrome
PASS
: 3
FAIL
: 3
Safari
FAIL
: 4
TIMEOUT
: 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/canvas/element/layers/2d.layer.global-states.alpha.filter.shadow.html [wpt.fyi]:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - /html/canvas/element/layers/2d.layer.global-states.no_global_states.html [wpt.fyi]:
FAIL
(Chrome:PASS
, Safari:FAIL
) - /html/canvas/offscreen/layers/2d.layer.global-states.alpha.filter.shadow.html [wpt.fyi]:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - /html/canvas/offscreen/layers/2d.layer.global-states.alpha.filter.shadow.w.html [wpt.fyi]:
TIMEOUT
(Chrome:FAIL
, Safari:TIMEOUT
) - /html/canvas/offscreen/layers/2d.layer.global-states.no_global_states.html [wpt.fyi]:
FAIL
(Chrome:PASS
, Safari:FAIL
) - /html/canvas/offscreen/layers/2d.layer.global-states.no_global_states.w.html [wpt.fyi]:
TIMEOUT
(Chrome:PASS
, Safari:TIMEOUT
)
Comment 5•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7ce63b648ce8
https://hg.mozilla.org/mozilla-central/rev/842b8ba1d54d
Description
•