Re: [csswg-drafts] [css-color-4] [css-color-5] Mixing with `transparent` seems broken in implementations (#8612)

> [The spec](https://drafts.csswg.org/css-color-5/#color-mix-result) isn't super-clear on what operations should happen when converting between these color-spaces (unless I've missed it). So it seems that should be clearer.

It currently says:

>> Colors are then interpolated in the specified color space, as described in [CSS Color 4 §  12. Color Interpolation](https://drafts.csswg.org/css-color-4/#interpolation). If the specified color space is a cylindrical-polar-color space, then the [<hue-interpolation-method>](https://drafts.csswg.org/css-color-5/#typedef-hue-interpolation-method) controls the interpolation of hue, as described in [CSS Color 4 § 12.4 Hue Interpolation](https://drafts.csswg.org/css-color-4/#hue-interpolation). If no <hue-interpolation-method> is specified, it is as if shorter had been specified. If the specified color space is a rectangular-orthogonal-color space, then specifying a <hue-interpolation-method> is an error.

which seems fairly specific, as CSS 4 Color interpolation is pretty detailed. 

Is there something specific which is unclear or missing?

But I guess that

>> Interpolation between [<color>](https://drafts.csswg.org/css-color-4/#typedef-color) values occurs by first converting them to a given color space which will be referred to as the interpolation color space below, and then linearly interpolating each component of the computed value of the color separately.

could link "converting them" to [Converting Colors](https://drafts.csswg.org/css-color-4/#color-conversion) which is the immediately preceding section.

And I could always add some worked examples.



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


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

Received on Thursday, 1 June 2023 17:30:18 UTC