Re: [csswg-drafts] [css-color] Resolving color-mix() (#7302)

From https://drafts.csswg.org/css-color-5/#resolving-mix:

> Otherwise (if currentColor was used in the function), the computed value is the color-mix() function with each <color> parameter...

Is `currentColor` the only issue? What about system colors that depend on the color-scheme computed value, e.g.:

```css
div { color: color-mix(in lch, canvastext, blue) }
div.dark { color-scheme: dark; }
```

Depending on whether an element has the class "dark" or not, the computed value will be different. Serializing the color declaration in the div rule above cannot give a reasonable serialization as a `<color>`.

@lilles, who I am basically quoting here, might have more to say.


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


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

Received on Tuesday, 11 October 2022 18:03:19 UTC