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

> most common case is to provide a fixed background color and multiple candidates for the foreground color

so what if it defaulted to `over` and could be flipped with the `under` keyword?

```css
foo {
  color: color-contrast(var(--_bg) vs var(--text-color-list));
}

bar {
  background: color-contrast(under var(--_text) vs var(--brand-bg-list));
}
```

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


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

Received on Thursday, 16 June 2022 23:53:41 UTC