[Webkit-unassigned] [Bug 280034] New: Page crash when using channel extracted from relative color syntax into a calc(pow()) expression

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 19 18:42:38 PDT 2024


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

            Bug ID: 280034
           Summary: Page crash when using channel extracted from relative
                    color syntax into a calc(pow()) expression
           Product: WebKit
           Version: Safari 18
          Hardware: Mac (Apple Silicon)
                OS: macOS 15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: pierre at humanitix.com
                CC: koivisto at iki.fi

Created attachment 472608

  --> https://bugs.webkit.org/attachment.cgi?id=472608&action=review

Crash log

Hello,

I've been using the relative color syntax https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_colors/Relative_colors to manipulate the alpha level based on the oklch lightness of a given color.

We have noticed that re-using one of the channel (Lightness in our case, but the same seems to happen for Chroma and Hue) inside a pow() function causes a complete crash of the page.


Here's how to reproduce:
- On Safari 18
- Navigate to https://svelte.dev/repl/ea2f7b1c06644275abaee5247b938a76?version=4.2.19
- Notice the --alpha expression works for the first 4 options
- Notice crash on the bottom 3 options

Attached a crash log of when the issue triggered.

Thanks.

-- 
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/20240920/3c9d4683/attachment.htm>


More information about the webkit-unassigned mailing list