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

> What about incorporating foreground vs background into the function name?
> 
> ```
> contrast-background(...)
> contrast-foreground(...)
> ```

As I replied in IRC, I think it's unclear whether `contrast-background(red)` means "I have a red background, give me a suitable foreground color" or "Get me a suitable background color, I have a red foreground".

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


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

Received on Wednesday, 15 February 2023 18:23:31 UTC