Re: [csswg-drafts] [css-color-5] Commas in color-mix()? (#6066)

The color-mix should take place in the same color-space, otherwise wouldn't this cause compatibility issues? I would expect that whichever colors I use in the color-mix, the mixing will be done in the same color space. The colors would get cast to that space and mixed.

That's why I feel that the most straightforward syntax is:

```
color-mix([ [ <<color>> && [ <<percentage>> ]? ] <<color>> ] / <<colorspace>>?)
color-mix(red 20%, white / lch)
```

This reads to me as: mix 20% red with 80% white in the lch color space


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


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

Received on Thursday, 4 March 2021 00:27:51 UTC