Skip to content

[mediaqueries-5] How does script control of preferences work with forced color schemes? #11575

Open
@lukewarlow

Description

@lukewarlow

Currently you can set a color scheme on your site, which allows you to specify which colour schemes you support.

Some browsers allow the user to force a specific color scheme on a site even if it only supports light mode by default.

This can be disabled by using the light only value for the color-scheme property or meta tag.

What behaviour should preference overrides have? light - where the browser force dark mode wins, or light only where the users choice for the site overrides the browsers force dark mode?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions