WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
280034
Page crash in CSSCalcSymbolNode::doubleValue when using channel extracted from relative color syntax into a calc(pow()) expression
https://bugs.webkit.org/show_bug.cgi?id=280034
Summary
Page crash in CSSCalcSymbolNode::doubleValue when using channel extracted fro...
P
Reported
2024-09-19 18:42:38 PDT
Created
attachment 472608
[details]
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.
Attachments
Crash log
(77.05 KB, text/plain)
2024-09-19 18:42 PDT
,
P
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2024-09-20 16:50:54 PDT
rdar://135787066
Sam Weinig
Comment 2
2024-09-25 09:23:20 PDT
Does not reproduce in ToT.
Sam Weinig
Comment 3
2024-09-25 09:24:49 PDT
From the crashlog, I think it is likely this was fixed with the calc() re-write in
https://bugs.webkit.org/show_bug.cgi?id=278244
(though I did not bisect to confirm).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug