Open Bug 1811317 Opened 2 years ago Updated 2 years ago

Allow user to choose if websites use dark/light theme independent of the OS/Fenix UI theme settings

Categories

(Fenix :: General, enhancement, P3)

All
Android
enhancement

Tracking

(Not tracked)

People

(Reporter: kbrosnan, Unassigned)

References

Details

From github: https://github.com/mozilla-mobile/fenix/issues/20635.

Please make it possible to disable the feature of using websites' dark-mode CSS when the dark theme is used in the browser. I.e., I'd like to have FF with the dark theme but view sites in the default/‘light’ theme.

Rationale: I have astigmatism, as do ‘between 30 and 60% of adults’, according to Wikipedia. Apparently that's what makes reading light text on dark background difficult and uncomfortable, all the way to barely tolerable sometimes. Meanwhile, I prefer the phone's OS and browser UI to use the dark theme, because a) it looks good, b) this way the UI doesn't shine extra white into my eyes, and c) I don't normally read paragraphs of text in the system/browser UI. I find that dark UI with white website content is just the right amount of light from the screen, and thus was using this arrangement for ages.

Regarding the setting: a flag in about:config would work great for me.

Of course I don't know how hard this is to implement, but to my knowledge it would amount mostly to an if on the code that triggers the prefers-color-scheme media-query—the rest of the browser would work simply as if the site doesn't have a dark theme. After all, the mobile browser had a dark UI before prefers-color-scheme came along, and the browser chrome generally doesn't care about websites' colors.

P.S. I'm posting this request here because it chiefly concerns the mobile version, though it most probably has to be implemented in the engine. However I don't know what lower-level component this should be filed under. If I should re-post this on Bugzilla, please let me know what the proper designation for it is.

Currently I found only a vaguely-related issue on Bugzilla: “Let add-ons control website's CSS media queries or prefers-color-scheme”. It seems to be without any development so far. Its implementation would sidestep my request on desktop, but then again, afaiu Android FF wouldn't benefit much from that and would have to re-implement the API.

┆Issue is synchronized with this Jira Task

Change performed by the Move to Bugzilla add-on.

Summary: Allow user to choose if websites use dark/light theme independent of the theme settings → Allow user to choose if websites use dark/light theme independent of the OS/Fenix UI theme settings
Severity: -- → N/A
Type: defect → enhancement
Priority: -- → P3
See Also: → 1736218
You need to log in before you can comment on or make changes to this bug.