Reader mode ignores web appearance selection when Increase Contrast is active
Categories
(Toolkit :: Reader Mode, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox104 | --- | verified |
People
(Reporter: morgan, Assigned: morgan)
Details
(Keywords: access)
Attachments
(1 file)
STR:
- Select "dark" in about:preferences web appearance section
- Enable increase contrast: system prefs > accessibility > display > increase contrast
- Open a page in reader mode
Expected:
Reader mode is rendered in dark mode colors
Actual:
Reader mode is rendered black on white
I think this has to do with the logic we use for deciding which theme to use. We check if (prefers-contrast) is enabled, and if so choose the "hcm" theme. The prefers-contrast media query is true for both windows HCM and macOS's increase contrast. When win HCM is active, we do want to use the "hcm" reader theme to ensure semantic color usage, but I think macOS users are more likely to expect/desire a high-contrast version of their chosen web appearance theme.
I think we can rely on forced-colors here instead of prefers-contrast since the former relies on mUseDocumentColors in PreferenceSheet and the latter has some additional logic to permit mAccessibiilityTheme enabled && FF HCM Disabled which is a common macOS use case.
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 3•4 years ago
|
||
| bugherder | ||
Updated•4 years ago
|
Comment 4•4 years ago
|
||
Reproduced the issue with Firefox 104.0a1 (2022-06-28) on macOS by following the STR from comment 0. Reader mode does not have dark mode enabled.
The issue is verified fixed with Firefox 104.0b5 (20220802185803) on macOS 11. Reader mode has dark mode enabled.
Updated•3 years ago
|
Description
•