Closed Bug 1780660 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 34930 - Set contents_opaque(false) if the background color is transparent

Categories

(Core :: Web Painting, task, P4)

task

Tracking

()

RESOLVED FIXED
105 Branch
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

Component: web-platform-tests → Web Painting
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c4e86ed7f2b5 [wpt PR 34930] - Set contents_opaque(false) if the background color is transparent, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.