[wpt-sync] Sync PR 34930 - Set contents_opaque(false) if the background color is transparent
Categories
(Core :: Web Painting, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox105 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 34930 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/34930
Details from upstream follow.
Xianzhu Wang <wangxianzhu@chromium.org> wrote:
Set contents_opaque(false) if the background color is transparent
Previously if a layer's background was transparent and the layer is
opaque, we used the layer_tree_host's background as
SafeOpaqueBackgroundColor(). However, the color might be dramatically
different from the normal color in the layer, causing edge artifacts.Now set contents_opaque(false) in the case.
The case of opaque layer not having a background color only happens
in cases such as the layer has an opaque background image. In such
cases, case, using any heuristic color as the
SafeOpaqueBackgroundColor() may be inappropriate.Bug: 1330509
Change-Id: I91edeb1c02da5eaa38ea0431f0559775b273f418
Reviewed-on: https://chromium-review.googlesource.com/3779000
WPT-Export-Revision: 579c100ea45bc7e5c34fbbbf47e85df53e696d09
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 3•3 years ago
|
||
Comment 4•3 years ago
|
||
| bugherder | ||
Description
•