Skip to content

Update to color properties in Forced Colors Mode #12166

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

Merged
merged 3 commits into from
May 6, 2025

Conversation

alisonmaher
Copy link
Collaborator

@alisonmaher alisonmaher commented May 5, 2025

[css-color-adjust-1] This change makes the updates per resolutions taken in #11857.

More specifically, it moves the color properties that forced colors applies to within a note, mentions that this is the list at the time of writing and may not be exhaustive as other color properties are added over time, and notes that forced colors mode applies to any shorthand properties, as well.

It updates normative text referencing color properties to note that forced colors applies to the <color> components of all properties.

This change also updates column-rule-color to rule-color to ensure that full support exits for the new color properties added in the Gaps specification.

It adds accent-color to the list of color properties (it is mentioned lower down in the algorithm (along with scrollbar-color) but it wasn't mentioned in the color properties list).

I also updated some minor inconsistencies in using "computed" vs "computes" within the forced color mode rules.

Lastly, I updated the order of the color properties to be in alphabetical order.

The updates can be found hosted at https://alisonmaher.github.io/alisonmaher/css-color-adjust-1/Overview.html#forced-colors-properties.

@alisonmaher alisonmaher added the css-color-adjust-1 Current Work label May 5, 2025
@alisonmaher alisonmaher requested review from tabatkins and fantasai May 5, 2025 21:18
@svgeesus svgeesus linked an issue May 6, 2025 that may be closed by this pull request
Copy link
Contributor

@svgeesus svgeesus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tabatkins
Copy link
Member

Sorry, r-. Nothing wrong with the edits on their face, I just disagree with one of the resolutions this is implementing, and wrote my objection in #11857.

Copy link
Member

@tabatkins tabatkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r- for now, until we resolve the issue

@alisonmaher
Copy link
Collaborator Author

Sorry, r-. Nothing wrong with the edits on their face, I just disagree with one of the resolutions this is implementing, and wrote my objection in #11857.

@tabatkins
Updated the text to more clearly state that this applies to <color> components of properties, instead of "color properties".

I also noticed a couple of other minor things when making the update that are now fixed in this PR:

  1. We used a mix of "computes" and "computed" in one of the lists in this section - I've updated all remaining instances to "computes"
  2. accent-color was listed as computing to auto but wasn't included in the list of properties that are now in the note, so I added it there now, as well

@alisonmaher alisonmaher requested a review from tabatkins May 6, 2025 20:32
@tabatkins tabatkins merged commit 2ebb0a1 into w3c:main May 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[css-color-adjust-1] Forced Colors Mode support for gap decorations
3 participants