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
301924
[masonry] Crash with 0 elements
https://bugs.webkit.org/show_bug.cgi?id=301924
Summary
[masonry] Crash with 0 elements
Brandon
Reported
2025-11-04 04:04:59 PST
When a masonry container has 0 elements it is causing a crash, because we are asserting during item placement that we have tracks. This isn't accurate, because we have no elements. Since the test cases swapped over to using display: masonry this is the test case I used to verify the fix. <!DOCTYPE html> <html> <style> .empty-container { display: grid; grid-template-rows: masonry; and grid-template-columns: masonry; } </style> <body> <p>Test that an empty masonry container renders nothing.</p> <div class="empty-container"></div> </body> </html>
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-11-04 04:05:06 PST
<
rdar://problem/164003234
>
Brandon
Comment 2
2025-11-04 04:07:30 PST
Pull request:
https://github.com/WebKit/WebKit/pull/53389
EWS
Comment 3
2025-11-04 07:56:58 PST
Committed
302541@main
(92dc5fc313bd): <
https://commits.webkit.org/302541@main
> Reviewed commits have been landed. Closing PR #53389 and removing active labels.
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