Re: [csswg-drafts] [css-color-4] Lch limits on hue value are a bit too limiting (#4703)

What about a gradient from 0 to 180? Or 180° to 0°? If you clamp angles to _any_ range, at some point you are going to run into this situation and will need to make an arbitrary decision on which way to iterate.

Same for the situation where you want to create a continuous color range from 0..360°, which is not an unusual thing to want. Yes, you can split it into two segments, but why should you have to?

If you don't clamp the values, you don't have to do either of these. Given there's also no technical reason this has to be done, and that it's not currently done for HSL which is already being used in the wild, I'm not sure I see the benefit in taking a different approach for Lch.



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

Received on Wednesday, 5 February 2020 09:45:53 UTC