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

Add forced-colors #1651

Merged
merged 6 commits into from
Sep 6, 2024
Merged

Add forced-colors #1651

merged 6 commits into from
Sep 6, 2024

Conversation

jamesnw
Copy link
Collaborator

@jamesnw jamesnw commented Aug 23, 2024

Related to #1624

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Aug 23, 2024
features/forced-colors.yml Outdated Show resolved Hide resolved
- https://drafts.csswg.org/css-color-adjust-1/#forced-color-adjust-prop
group: css
status:
compute_from: css.at-rules.media.forced-colors
Copy link
Contributor

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.

Copy link
Collaborator Author

@jamesnw jamesnw Sep 3, 2024

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.

Copy link
Collaborator

@ddbeck ddbeck left a 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!

features/forced-colors.yml Outdated Show resolved Hide resolved
@ddbeck
Copy link
Collaborator

ddbeck commented Sep 5, 2024

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!

@jamesnw
Copy link
Collaborator Author

jamesnw commented Sep 5, 2024

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!

@ddbeck Fixed, and I'll look at if I can give maintainers edit permissions.

@jamesnw jamesnw requested a review from ddbeck September 5, 2024 13:16
@ddbeck ddbeck merged commit 7e64a83 into web-platform-dx:main Sep 6, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature definition Creating or defining new features or groups of features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants