[Webkit-unassigned] [Bug 220797] New: Remove explicit clamp to SRGB for Lab colors on CG platforms supporting wide color

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 21 07:34:58 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=220797

            Bug ID: 220797
           Summary: Remove explicit clamp to SRGB for Lab colors on CG
                    platforms supporting wide color
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aakash_jain at apple.com

To break up the lab(), lch() change, it was opted to initially land with an explicit clamp to sRGB to avoid the subtle rounding issues we were seeing with CG. 

We should remove explicit clamp to SRGB by either:
- Explicit conversion to ExtendedSRGB (-Inf,Inf), which will avoid using CG's color conversion code, but won't be re-usable down the road if we want to use CG for things like gradients in the Lab color space.
- Passing the Lab color to CG and identifying and working around the precision issues in the tests.

Note: this is a test bug, please ignore :)

-- 
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/20210121/374dc15f/attachment.htm>


More information about the webkit-unassigned mailing list