Re: [csswg-drafts] [css-color-4] Rendering gradients with missing color components (#9295)

So 

```css
linear-gradient(in oklch, red, transparent, blue);
```

> Would first transform all three color stops to oklch (rounding here):
> linear-gradient(in oklch, oklch(0.628 0.26 29.23), oklch(0 0 none / 0), oklch(0.45 0.31 264.05));

Right. And then the first segment interpolates `oklch(0.628 0.26 29.23)` to ,`oklch(0 0 29.23/ 0)` while the second interpolates `oklch(0 0 264.05/ 0)` with `oklch(0.45 0.31 264.05)` which is as expected - the hue does not change along either of the two segments, they just fade to transparent black.

Doing some hue interpolation between two adjacent stops would cause the hue to gradually change on both segments.

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


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

Received on Saturday, 2 September 2023 18:12:17 UTC