Skip to content

[mediaqueries-5] Add language about how the browser obtains prefers-color-scheme from the OS #10015

@prarsena

Description

@prarsena

In mediaqueries-5/#prefers-color-scheme, would it be appropriate to provide details about how the browser obtains information from the device about the user's color preference?

For example:

The method by which the user expresses their preference can vary. It might be a system-wide setting exposed by the Operating System, or a setting controlled by the user agent.

Could this type of language be added:

Information sent from the operating system or the user agent that contains a Sec-CH-Prefers-Color-Scheme Client Hint header (which also supports the "dark" / "light" values) that can be used by the prefers-color-scheme media feature to tailor the response to the client’s preferences accordingly.

Not to get too into the weeds, but I'm also searching for documentation about how the browser communicates with the OS, if anyone knows of resources for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions