Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should this support forced-colors? #15

Closed
lukewarlow opened this issue Sep 6, 2023 · 1 comment
Closed

Should this support forced-colors? #15

lukewarlow opened this issue Sep 6, 2023 · 1 comment

Comments

@lukewarlow
Copy link
Collaborator

lukewarlow commented Sep 6, 2023

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
Copy link
Collaborator Author

w3c/csswg-drafts#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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant