Re: [csswg-drafts] [css-color] color-contrast() should distinguish foreground and background (#7359)

I'd prefer we keep the list comma-separated, which allows things like the ideas proposed in #7360.

Also note that the semantics of what you are proposing are flipped: 
- `color-contrast(over white, red, black)` = white background, red/black foreground candidates
- `color-contrast(white over red black)` = white foreground, red/black background candidates

This means that for the most common use case (fixed background, foreground candidates) one would have to use `under` rather than `over`, which is suboptimal as it's a less understandable keyword.

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7359#issuecomment-1158668669 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 17 June 2022 09:09:35 UTC