[Webkit-unassigned] [Bug 252043] New: CSS color-mix() function not working with Display-P3

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 10 03:47:34 PST 2023


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

            Bug ID: 252043
           Summary: CSS color-mix() function not working with Display-P3
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Mac (Apple Silicon)
                OS: macOS 13
            Status: NEW
          Severity: Trivial
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: melvin.idema30 at gmail.com

When I try to use the color-mix() function in combination with the Display-P3 color function, the function breaks. This is because the first argument, the color-space, is not supported by the color-interpolation-method as defined in CSS Color Module 5. However, it seems like CSS Color Module 5 suggests that one can give a @color-profile as color-interpolation-method in the color-mix() function like this:

color-mix(<dashed-ident>, <color> <percentage, <color>);

Expected Behavior: The color-mix() function should work correctly with the Display-P3 color, creating a mix of two colors in the specified color-space. Or at least work correctly with dashed-ident's and custom @color-profile.

Steps to Reproduce: Try to use the color-mix() function in combination with Display-P3 or @color-profile on Safari 16 or Technology Preview

-- 
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/20230210/d8791e06/attachment.htm>


More information about the webkit-unassigned mailing list