- From: Surma via GitHub <sysbot+gh@w3.org>
- Date: Wed, 22 Sep 2021 15:34:27 +0000
- To: public-css-archive@w3.org
surma has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-color-5] `in <space>` syntax for `linear-gradient()` et al == The nice thing about `color-mix()` is that it allows you to specify colors in a different color space then the color space in which the interpolation happens. As far as I can tell, `linear-gradient()` et al will always interpolate in RGB space, and I can’t find any changes to `linear-gradient` in CSS Color 4 or 5. Would it be feasible to add a `in <space>` syntax to `linear-gradient()`, similar to what `color-mix()` supports? Here’s what gradients from blue to green would look like (I used JavaScript to generate these gradients using `color-mix()`): <img width="1680" alt="Screen Shot 2021-09-22 at 16 31 00" src="https://user-images.githubusercontent.com/234957/134374638-b9a4ca73-b902-4f09-ad12-0484cf502d0c.png"> cc @argyleink Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6667 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 22 September 2021 15:34:29 UTC