Re: [csswg-drafts] [css-color-4] [css-color-5] inconsistent mentions of powerless components in `white`. (#8609)

> I'm not going beyond the scope of CSS, but I'm using a tool to demonstrate the behavior.

I think I am often confused because I don't know exactly which values you are challenging. In this case I thought you were questioning the validity of the `oklch` results when in fact you where looking mostly at the `rgb` values.

-------

I think I know what we are seeing.

In the current version of the specification `hue` does indeed become `powerless`, but it does not become `missing`.

Setting `powerless` components to missing only happens when converting to a different color space.

So the `rgb` result is roughly accurate (there is still gamut mapping), but the manual interpolation I did for `oklch` is incorrect.

-----

This unfortunately means that users still can not mix a random color with white and get the expected result.

They would need to mix different color spaces to trigger the conversion to missing components.

https://drafts.csswg.org/css-color/#powerless

> If a powerless component is manually specified, it acts as normal; the fact that it’s powerless has no effect. However, if a color is automatically produced by color space conversion, then any powerless components in the result must instead be set to missing, instead of whatever value was produced by the conversion process.

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


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

Received on Tuesday, 22 August 2023 14:32:54 UTC