[Webkit-unassigned] [Bug 261603] New: Colors with lightness of 0 or 100 with a chroma that pushes the color out of gamut are displayed as non-white / non-black

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 15 06:34:11 PDT 2023


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

            Bug ID: 261603
           Summary: Colors with lightness of 0 or 100 with a chroma that
                    pushes the color out of gamut are displayed as
                    non-white / non-black
           Product: WebKit
           Version: Safari 17
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: romain at mrhenry.be

Example WPT tests :
- http://wpt.live/css/css-color/oklch-009.html
- https://github.com/web-platform-tests/wpt/blob/master/css/css-color/oklch-009.html

specification : https://drafts.csswg.org/css-color/#specifying-lab-lch

> If the lightness of a Lab color (after clamping) is 0%, or 100% the color will be displayed as black, or white, respectively due to gamut mapping to the display.

WebKit doesn't current gamut map colors and instead clips.
This darkens colors that should actually be white/black.

https://codepen.io/romainmenke/pen/xxmLpRO

-- 
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/20230915/536ed7c2/attachment.htm>


More information about the webkit-unassigned mailing list