Skip to content

[css-color-adjust-1] Forced colors mode usage beyond high contrast mode #6664

@beverloo

Description

@beverloo

https://www.w3.org/TR/css-color-adjust-1/#forced-colors-mode
https://www.w3.org/TR/mediaqueries-5/#forced-colors

[css-mediaqueries-5] defines a new forced-colors media query, that can be set to active when "forced colors mode" is active. This is defined as:

Forced colors mode is an accessibility feature intended to increase the readability of text through color contrast. [...] Users can also customize their own themes, for example to provide low contrast or hue contrast.

Chrome has an experimental feature (available in chrome://flags) to apply a generated Dark Mode to Web Contents that don't provide one themselves. It strikes me that allowing developers to detect this as follows would be very appropriate:

@media (prefers-color-scheme: dark) and (forced-colors: active) {}

I'd like to ask whether it would be appropriate to scope up this definition?

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