Closed Bug 1782595 Opened 2 years ago Closed 2 years ago

[css-mediaqueries] propagate preferred color-scheme into SVG images, when embedding context has color-scheme: normal and no color-scheme meta tag

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: mozilla-apprentice, Assigned: emilio)

References

Details

Attachments

(2 files)

Resolutions were made for csswg-drafts/#7526.

[css-mediaqueries] Clarify propagated preferred color-scheme on SVG images with color-scheme: normal and no color-scheme meta tag

  • RESOLVED: do what Emilio said
  • RESOLVED: for the purposes of propagating prefers-color-scheme to the embedded page, if `color-scheme` is `normal` and there's no `color-scheme` meta tag, the propagated scheme is the preferred color-scheme of the embedder document

Discussion.

emilio, I'm guessing you might want to take this, since it was your proposal and it's probably a small change?

Assignee: nobody → emilio
Summary: [css-mediaqueries] Clarify propagated preferred color-scheme on SVG images with color-scheme: normal and no color-scheme meta tag → [css-mediaqueries] propagate preferred color-scheme into SVG images, when embedding context has color-scheme: normal and no color-scheme meta tag
See Also: → 1782596

[Tracking Requested - why for this release]: We should fix this for 104 to avoid shipping the wrong behavior to the web, or pref off to keep the 103 behavior. The change is trivial tho.

Flags: needinfo?(emilio)

The bug is marked as tracked for firefox104 (beta). However, the bug still has low severity.

:fgriffith, could you please increase the severity for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit auto_nag documentation.

Flags: needinfo?(fgriffith)

I disabled this on beta to get a bit more time: https://bugzilla.mozilla.org/show_bug.cgi?id=1779457#c10

Flags: needinfo?(fgriffith)

The "preferred" one is the behavior we have for chrome docs, where we
fall back always to the document's preferred color-scheme rather than
falling back to light.

We'll use this in the next patch.

We have tests for the explicit color-scheme in the WPT, and testing this
properly needs prefs to switch the light/dark preference so tests can't
go there.

Undoing https://hg.mozilla.org/integration/autoland/rev/f31efc2a9229
should be enough to cover the difference between preferred and used
color-scheme.

Depends on D154923

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/94d84d49dba2
Distinguish between "preferred" and "used" color-scheme. r=tnikkel
https://hg.mozilla.org/integration/autoland/rev/9d677ac57528
Use the preferred color-scheme to propagate to SVG images. r=tnikkel
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: