- From: Romain Menke via GitHub <sysbot+gh@w3.org>
- Date: Tue, 22 Aug 2023 12:52:53 +0000
- To: public-css-archive@w3.org
The specification states that hue is powerless when chroma is `0%`. I don't understand how you get a hue of `30deg` here : ``` >>> result = Color('oklch(75% 0% 60deg)').mix('oklch(75% 50% 0deg)', space='oklch') >>> result.to_string() 'oklch(0.75 0.1 30)' ``` ---- I stated that the rgb results are an approximation. Listing the rgb approximation is useful to quickly have a visual reference. ---- > One more thing. I'd also recommend to employ when chroma is sufficiently close to zero that it hue is treated as undefined. The perils of floating point math will often give you a very close, but not zero value for chroma due to the algorithm. This is mentioned in the spec, but provides no real guidance on what "sufficiently close" is. This is off topic, you've brought this up multiple times in multiple issues. Maybe better to open a dedicated issue for this? -- GitHub Notification of comment by romainmenke Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8609#issuecomment-1688128711 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 12:52:55 UTC