Closed Bug 1782596 Opened 2 years ago Closed 2 years ago

[css-mediaqueries] make context-dependent color scheme propagation works in iframes (even cross-origin iframes)

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: mozilla-apprentice, Assigned: emilio)

References

Details

Attachments

(1 file)

A resolution was made for csswg-drafts/#7493.

[css-mediaqueries] Should prefers-color-scheme in iframes be context-dependent?

  • RESOLVED: Context-dependent color scheme propagation works for iframes (including cross-origin) unless specifically restricted

Discussion.

See Also: → 1782595

(assuming emilio might want to take this, like bug 1782595, since it's his proposal and likely a small change. But feel free to dupe or reassign as-appropriate.)

Assignee: nobody → emilio
Summary: [css-mediaqueries] Should prefers-color-scheme in iframes be context-dependent? → [css-mediaqueries] make context-dependent color scheme propagation works in iframes (even cross-origin iframes)
Flags: needinfo?(emilio)

The ColorSchemeMode::Preferred change doesn't make a difference (that
is, always use the preferred one), since when we only propagate from
top's embedder the embedder is chrome, which always has the preferred
color-scheme.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/caf2468b70be
Propagate preferred color-scheme to non-top frames. r=jwatt
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/35546 for changes under testing/web-platform/tests
Upstream PR was closed without merging
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/495ffb27c683
Propagate preferred color-scheme to non-top frames. r=jwatt
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1786597
See Also: → 1786637
Regressions: 1787127
Regressions: 1789338
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: