[Webkit-unassigned] [Bug 255939] New: (OK)LCH implementation is not according to spec
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 25 11:23:46 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=255939
Bug ID: 255939
Summary: (OK)LCH implementation is not according to spec
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: bugzilla at vasilis.nl
The implementation of LCH and OKLCH is incorrect. According to the spec `oklch(1 0.4 240)` should be white, and `oklch(0 0.4 240)` should be black:
> "If the lightness of an Oklch color is 0% or 0, or 100% or 1.0, the hue component is powerless and the chroma is 0."
https://drafts.csswg.org/css-color-4/#specifying-oklab-oklch
Here’s a test URL:
https://vasilis.nl/dingen/bugs/oklch.html
You can see that all four squares are not black nor white. This is of course a bug.
Plain LCH should behave the same of course and as you can see it is buggy in the same way.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230425/9d1cc53f/attachment.htm>
More information about the webkit-unassigned
mailing list