Open Bug 1849786 Opened 1 year ago Updated 3 months ago

WebExtension API for prefers-color-scheme (browserSettings.overrideContentColorScheme) but scoped per/limited to website/tab

Categories

(WebExtensions :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: 5i13ghzt462u, Unassigned)

References

Details

(Whiteboard: [design-decision-needed])

As it has been said in https://bugzilla.mozilla.org/show_bug.cgi?id=1547818#c21 I want to set/override the prefers-color-scheme value for specific tabs or websites, i.e. not for the whole browser.

This has been a popular request from the users of my Firefox add-on/WebExtension, see https://github.com/rugk/website-dark-mode-switcher/issues/12

https://bugzilla.mozilla.org/show_bug.cgi?id=1547818#c0 use cases are still quite valid.

Product: Firefox → WebExtensions

Depending on what the API looks like the existing prefersColorSchemeOverride might be enough.

Severity: -- → N/A
Type: defect → enhancement
Priority: -- → P3
Whiteboard: [design-decision-needed]
See Also: → 1866637
Duplicate of this bug: 1866637
You need to log in before you can comment on or make changes to this bug.