Bug 283981

Summary: Web Inspector: Crash when opened with CSS Variable @keyframes Animation
Product: WebKit Reporter: shshaw
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ap, graouts, inspector-bugzilla-changes, karlcow, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 18   
Hardware: Mac (Apple Silicon)   
OS: macOS 15   
See Also: https://bugs.webkit.org/show_bug.cgi?id=286534
Attachments:
Description Flags
Crash log from Safari Technical Preview none

shshaw
Reported 2024-12-03 09:51:47 PST
Created attachment 473444 [details] Crash log from Safari Technical Preview When there's a CSS animation that animates a CSS custom property (CSS Variable) (with or without an `@property` declaration), the browser will crash when Web Inspector gets opened and the animation is triggered. Tested on Safari 18.1.1 and Safari Technology Preview (Release 208, Safari 18.2, WebKit 20621.1.5.1). CodePen example: https://codepen.io/shshaw/pen/WbeQOJo Sample Code: ``` @property --angle { inherits: false; initial-value: 0turn; syntax: "<angle>"; } .button { font-size: 2rem; border-radius: 0.25em; padding: 0.4em 0.7em; margin: 5px 0; display: inline-block; background: red; animation: varAnim 1s linear infinite paused; } .button:hover { animation-play-state: running; } @keyframes varAnim { to { background: purple; /* It doesn't seem to matter what the variable is or if it has the @property declaration. Any kind of custom property animation causes a crash. */ --angle: 1turn; } } ```
Attachments
Crash log from Safari Technical Preview (49.06 KB, text/plain)
2024-12-03 09:51 PST, shshaw
no flags
shshaw
Comment 1 2024-12-03 10:04:50 PST
Noting that it doesn't seem to matter if the variable is actually used for anything. Just the presence of a CSS Variable in the `@keyframes` triggers the crash when dev tools is opened. There seems to be a relation with the `animation-play-state` `paused`/`running` change as well.
shshaw
Comment 2 2024-12-03 10:06:16 PST
Radar WebKit Bug Importer
Comment 3 2024-12-03 16:33:00 PST
Note You need to log in before you can comment on or make changes to this bug.