Closed Bug 1666288 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 25654 - Pass iframe element color-scheme to contentDocument.

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 25654 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/25654
Details from upstream follow.

b'Rune Lillesveen <futhark@chromium.org>' wrote:

Pass iframe element color-scheme to contentDocument.

The CSS Color Adjustment specification[1] says we should paint an opaque
canvas background for an iframe if the used color-scheme for the iframe
element and the root element of the iframe document do not match.

This CL propagates the used color-scheme from the embedding document as
part of the FrameOwnerProperties mojo API. The embedder and the frame
may live in different processes due to OOPIF.

[1] https://drafts.csswg.org/css-color-adjust-1/#color-scheme-effect

Bug: 1058822
Change-Id: I4db82b774a616b528ab14898755153c624b63adf
Reviewed-on: https://chromium-review.googlesource.com/2410223
WPT-Export-Revision: 12bfb58ee12943ab2b3612f70c7d6a9690a23185

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 12 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

FAIL: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/17c8f54b5715
[wpt PR 25654] - Pass iframe element color-scheme to contentDocument., a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.