Re: [csswg-drafts] [css-color-6] Let's finally settle contrast-color() syntax (#7937)

> Personally I'm not fond of including specific algorithm names in the syntax. This should just be abstracted behind `background` vs. `text` or something similar, and the UA (or the spec) should pick the ideal algorithm for each case.

Yeah, that would be ideal, if there was a single optimal algorithm we could use. Sadly, that is not the case. However, that's what we're doing for level 5, but only for returning white and black (no candidates). There is a lot of background here, you can start from #7553 and dig in.

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


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

Received on Sunday, 23 October 2022 18:50:07 UTC