-
Notifications
You must be signed in to change notification settings - Fork 38
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
Propose a clamp option for CSS contrast-color() #345
Comments
Hi @AutoSponge, here are some notes I took about these issues, which I hope will be helpful for us to come to an issue we could post.
Here's what I see as next steps...
What do you think on the above? If I've captured it well, could you enumerate the use cases, and maybe we workshop a comment from there? |
In relation to w3c/csswg-drafts#9970 It may be helpful to have a "sticky" feature and a "greater contrast" algorithm. For example, if I have
IMO, max should restrict the color to the max requested. For example, on a black background, white text reaches 21:1 luminance ratio. But if I requested a 15:1 max (with a base of white on black background) for people with migraines and astigmatism, then I should get something like |
Also, since fillColor, color, and icons are a thing, we need to have ways of clamping at 3:1 on the min side and preferring that over a more aggressive 4.5:1. This is useful for a secondary call to action element. |
Opened by matatk via IRC channel #apa on irc.w3.org
Due: 2024-04-03 (Wednesday 3 April)
Relevant issues:
contrast-color()
MVP in Level 5 csswg-drafts#9166 (The big thread, with lots of details, diagrams, and discussion; closed)contrast-color(<color>)
csswg-drafts#9970 (The thread specifically about tolerances/requirements of contrast ratios)Minutes on this from the APA WG call today
The text was updated successfully, but these errors were encountered: