- From: Dan Burzo via GitHub <sysbot+gh@w3.org>
- Date: Tue, 07 Mar 2023 09:19:24 +0000
- To: public-css-archive@w3.org
I think there are two aspects worth discussing here that may influence the final syntax for `contrast-color()` (#7937): * Is there a need for an additional contrast keyword, or a different set of keywords altogether, to express the relationship between "adjacent but not overlapping" colors? (https://github.com/w3c/csswg-drafts/issues/7359) * Is there a need for the function to support multiple constraints for the set of candidate colors? What happens when you pit the default color candidates (`white, black`) against possibly-conflicting constraints? Your link color vs. text and background could possibly be expressed along the lines of: ```css a { color: contrast-color(adjacent currentColor wcag2(3), background var(--bg) wcag2(4.5), blue, violet, etc.) } ``` Support for multiple constraints will most likely impose some limitations on the syntax in order to disambiguate constraints from candidate colors. -- GitHub Notification of comment by danburzo Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8457#issuecomment-1457824207 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 7 March 2023 09:19:26 UTC