Closed Bug 1659511 Opened 4 years ago Closed 3 years ago

Enable the forced-colors media query

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: zekemedley, Assigned: morgan)

References

(Blocks 2 open bugs)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file, 1 obsolete file)

While at the moment forced-colors is a subset of prefers-contrast: forced it is possible that it is here to stay. Edge currently implements it and Bug 1591204 tracks its implementation behind layout.css.forced-colors.enabled. Once we've determined that the spec is sufficiently finalized we should turn that pref on by default.

Here is the spec issue to watch for this right now. Based on the discussion on there, I'd hazard to say that forced-colors will likely stick around in a way that is backwards compatible with the current spec. If that's the case, we may as well pref it on sooner rather than later.

Keywords: dev-doc-needed
Assignee: nobody → mreschenberg
Attachment #9215195 - Attachment description: WIP: Bug 1659511: Remove layout.css.forced-colors.enabled, release forced-colors r?emilio → Bug 1659511: Remove layout.css.forced-colors.enabled, release forced-colors r?emilio
Status: NEW → ASSIGNED
Blocks: 1704595
Attachment #9215195 - Attachment is obsolete: true
Pushed by mreschenberg@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c9bce7505942
Enable forced-colors by default r=emilio
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
Blocks: 1705168

I couldn't see any relevant code in Bug 1591204 - is the value protected by RFP (privacy.resistFingerprinting) - i.e always returnnone`?

Flags: needinfo?(emilio)

This will only return true when using forced colors mode / high contrast, which is highly observable via other means and fundamentally incompatible with resistFingerprinting (because we use real system colors for everything in that mode, basically).

I'd be ok with auto-disabling forced colors if resistFingerprinting is true, but there's no point in adding code particularly to the media query code (and it'd be a bit weird as forced colors is exposed in the preferences via other prefs, like browser.display.document_color_use).

Flags: needinfo?(emilio)

This was previously documented, so I've updated BCD, and added a release note.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: