Re: [csswg-drafts] [css-color-5] A mistake in the "color-mix" examples (#6249)

Yeah, that example looks like it was wrong. The Lch value was out of gamut, but even clipping the color or gamut mapping, the sRGB value still looked wrong.

I actually implemented a library that mixes colors as well, and you do stumble over such issues from time to time, especially in these early versions of the docs, but I like to check the latest drafts as well to see if the issue is already fixed.

The latest draft doesn't have that example at all: https://drafts.csswg.org/css-color-5/#color-mix. If I had to guess, I'm pretty sure it was replaced specifically with an example that didn't require gamut mapping or clipping so that the results were straightforward and easy to understand.

<img width="619" alt="Screen Shot 2021-04-28 at 10 59 19 AM" src="https://user-images.githubusercontent.com/1055125/116443403-d61b7980-a810-11eb-8633-969a2764cb84.png">

These results seem correct in Safari Technology Preview:

<img width="447" alt="Screen Shot 2021-04-28 at 11 03 38 AM" src="https://user-images.githubusercontent.com/1055125/116443887-6c4f9f80-a811-11eb-8fa2-ab4bc21b96aa.png">
:






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


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

Received on Wednesday, 28 April 2021 17:14:41 UTC