- From: Lea Verou via GitHub <sysbot+gh@w3.org>
- Date: Tue, 11 Jan 2022 20:19:27 +0000
- To: public-css-archive@w3.org
> And couldn't `hwb()` be seen as a shortcut for `color-mix()` in combination with `hsl()`? E.g. `hwb(240, 50%, 30%)` expressed with `color-mix()` is `color-mix(hsl(240, 0%, 0%), white 50%, black 30%))`, right? See, that's *precisely* what I’m worried about. No, it's not a shortcut for `color-mix()`. `color-mix(white X%, var(--color))` can produce any tint, whereas `hwb()` is restricted to the sRGB gamut. Note that `color-mix(hsl(240, 0%, 0%), white 50%, black 30%))` is invalid syntax, as the color space argument is mandatory and `color-mix()` only allows up to two colors. But assuming you meant `color-mix(in hsl, color-mix(in hsl, hsl(240, 0%, 0%), white 50%), black 30%)`, that would give you gray, not purple like `hwb(240 50% 30%)`, since you're mixing black with white and black… -- GitHub Notification of comment by LeaVerou Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6940#issuecomment-1010328235 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 11 January 2022 20:19:28 UTC