-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add forced-colors #1651
Add forced-colors #1651
Conversation
- https://drafts.csswg.org/css-color-adjust-1/#forced-color-adjust-prop | ||
group: css | ||
status: | ||
compute_from: css.at-rules.media.forced-colors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use the feature without forced-color-adjust
? It seems that merely detecting forced colors mode without being able to change it wouldn't be useful.
I wonder if we should just remove the compute_from
rule here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use it without forced-color-adjust
. For example, you can add a border to a button if it otherwise gets styles from box-shadow, which is removed in forced colors mode. So, the at rule was functional before forced-color-adjust
was added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. It might turn out that we split these features up later, but for now I'd like to see how it goes lumping them.
There's a typo to fix but I'll apply that and merge.
Thank you!
Oh wait, I can't because push to the PR branch. Oops! — @jamesnw if you'd apply the fix, we can merge soon after. Thank you! |
Co-authored-by: Daniel D. Beck <[email protected]>
Related to #1624