Re: [csswg-drafts] [css-color-5] What's the use case for color-mix() per-component adjusters? (#5192)

FWIW, Tab's last post convinced me. I still think it's a hack to use `color-mix()` to combine components from multiple colors, but using the relative color syntax would also be a hack, so it's the best solution we have right now.

Ideally we need functions to extract color components, though then how do we namespace? Maybe we could get away with just `alpha()`, `hue()`, `chroma()` and `lightness()`? Which components are the actual use cases for?

@Crissov that's what I thought at first, but this syntax is good for doing math on a single color's components, not combining components from two colors. 

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

Received on Thursday, 2 July 2020 04:14:13 UTC