You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()):
Sadly there is a lag between "already decided" and "already in the spec" and you should not be required to be psychic or have attended every call for the last 5 years.
So I'm going to re-tag it to Images 4, and leave it open until done.
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 tolinear-gradient
in CSS Color 4 or 5. Would it be feasible to add ain <space>
syntax tolinear-gradient()
, similar to whatcolor-mix()
supports?Here’s what gradients from blue to green would look like (I used JavaScript to generate these gradients using
color-mix()
):cc @argyleink
The text was updated successfully, but these errors were encountered: