Re: [csswg-drafts] [css-colors-4][css-colors-5] rgb-to-hwb algorithm disagrees indirectly with relative-color-out-of-gamut and color-mix-out-of-gamut expectations (#10695)

> However, back in `rgbToHwb`, only the resulting hue component is kept, the saturation and lightness are simply ignored.
> I believe that this is where things go wrong, because `rgbToHsl` could have flipped the hue and negated the saturation, but we only use that flipped hue and have lost the corresponding information stored in the saturation.

Yes, spot on. I agree that HWB should not flip the hue.

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


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

Received on Wednesday, 7 August 2024 00:48:46 UTC