Open Bug 1792672 Opened 2 years ago Updated 10 months ago

Support `prefers-constrast` media query on Android

Categories

(GeckoView :: General, enhancement, P3)

All
Android
enhancement

Tracking

(Accessibility Severity:s4)

Accessibility Severity s4

People

(Reporter: cpeterson, Unassigned)

References

Details

(Keywords: access)

prefers-contrast:more activates styles that web authors have specified for users who prefer increase contrast, improving the overall web experience for these users.

Morgan Reschenberg says desktop Firefox activates prefers-contrast:more when:

  • macOS's "Increase Contrast" setting is on.
  • Or Windows' high contrast mode setting is on and the ratio between the foreground and background colors is more than 7.
  • Or Firefox's high contrast mode is on and the ratio between the foreground and background colors is more than 7.

We need to figure out how the high contrast settings on Android operate to know whether it should fall into the prefers-contrast:more category. Depending on behavior, we may find forced-colors more appropriate.

Mozilla Hacks blog post about adding prefers-contrast support to desktop Firefox:

https://hacks.mozilla.org/2020/07/adding-prefers-contrast-to-firefox/

Keywords: access
Whiteboard: [access-s4]

Fenix would not need new settings UI for high contrast mode. Android has system settings for high contrast display mode and color inversion that can query, though I'm not sure which system settings should control prefers-constrast. It might be different depending on the Android OS version.

https://support.google.com/accessibility/android/answer/11183305

Severity: -- → S4
Priority: -- → P3
See Also: → 1529972

This is a separate question, but I wonder if we should enable backplate for users who have high contrast text enabled in their android settings... 🤔

Tasks and enhancements should have severity N/A.

Severity: S4 → N/A
Accessibility Severity: --- → s4
Whiteboard: [access-s4]
Component: Core → General
You need to log in before you can comment on or make changes to this bug.