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

@romainmenke, I was still gamut mapping with LCh, so that's where the purple shift comes from 🤦🏻. This just affects the color that is displayed, not the computed values.

But it still doesn't make sense to resolve chroma to missing. Again, let's take a look, this time doing things just like browsers. So, now using clip to keep in the gamut like browsers do, I don't get the purple shift in display (the computed values are still identical), but because we set chroma to missing, we we aren't interpolating from white to blue, it ends up as a super bright blue to normal blue as white adopts the blue chroma and hue.

<img width="1374" alt="Screenshot 2023-03-29 at 4 17 04 PM" src="https://user-images.githubusercontent.com/1055125/228681132-8f2d1274-5fc9-450a-a8d7-9375b26916d1.png">

And before we say that there must be something wrong with what _i_ and doing, let's look at Safari technical preview in Codepen.

<img width="1677" alt="Screenshot 2023-03-29 at 4 22 50 PM" src="https://user-images.githubusercontent.com/1055125/228681092-3c4fff3b-d26f-4d8f-8bd9-9eaba60796d0.png">

How are these results better? We lose the white and end up with an interpolation between bright blue and blue. That's not what the intent was.




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


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

Received on Wednesday, 29 March 2023 22:26:30 UTC