- Notifications
You must be signed in to change notification settings - Fork 749
Description
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?