WICG / web-preferences-api

The Web Preference API aims to provide a way for sites to override the value for a given user preference (e.g. color-scheme preference) in a way that fully integrates with existing Web APIs.
https://wicg.github.io/web-preferences-api/
Other
41 stars 2 forks source link

Should this support forced-colors? #15

Open lukewarlow opened 10 months ago

lukewarlow commented 10 months ago

Currently this API specifically doesn't allow 'custom' for contrast preferences because it's so tightly coupled to forced-colors.

Alternatively should this API allow opting in to forced-colors?

  1. Is this really necessary? Probably not?
  2. By default it would fallback to the browser default system colors. Is this enough? Would developers want to customise them?
  3. As mentioned forced-colors currently also updates prefers-contrast to either more, less or custom. What behaviour would be desired when the override is set?
lukewarlow commented 7 months ago

https://github.com/w3c/csswg-drafts/issues/9660 - if custom colours schemes come to pass that provides a mechanism to override system colours. With that in mind the ability to set forced colours to active wouldn't seem completely useless?

If you're not on Windows and you're not a Firefox desktop user you don't currently have a forced colours mode, this could allow sites to implement their own?