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

> Intuitively, I assumed that the red channel of the above gradient should interpolate as if the 2nd color stop were not there

I don't see how that conclusion follows from any specification text.

>> If a color with a carried forward [missing component](https://csswg.sesse.net/css-color-4/#missing-color-component) is interpolated with another color which is not missing that component, the missing component is treated as having the other color’s component value.

Exactly.

>  "none"s should be resolved by splitting into two color stops and interpolating with the neighbor

Not two stops exactly, but yes the color at that stop has different values on one side and the other (because `none` is filled in with different values on each side) so it does behave like two co-incident stops, with a hard transition.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9295#issuecomment-1703883583 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 16:35:36 UTC