W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2020

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

From: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Thu, 02 Jul 2020 04:14:11 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-652771117-1593663250-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:11 UTC