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
301907
[css-grid-3] Support 'display: masonry' so we can run WPT tests
https://bugs.webkit.org/show_bug.cgi?id=301907
Summary
[css-grid-3] Support 'display: masonry' so we can run WPT tests
fantasai
Reported
2025-11-03 21:14:08 PST
The CSSWG resolved to use 'display' for switching into masonry-style layout, but hasn't decided on a keyword yet. However all the WPTs are using 'display: masonry', which means we need to support this syntax if we want to run the WPTs. We can update to the final keyword later.
Attachments
patch
(131.21 KB, patch)
2025-11-03 21:20 PST
,
fantasai
no flags
Details
Formatted Diff
Diff
patch
(139.01 KB, patch)
2025-11-04 20:55 PST
,
fantasai
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-11-03 21:14:14 PST
<
rdar://problem/163985106
>
fantasai
Comment 2
2025-11-03 21:20:20 PST
Created
attachment 477282
[details]
patch A number of tests (21) are crashing on this line so can't record their results: void GridMasonryLayout::placeMasonryItems(const GridTrackSizingAlgorithm& algorithm, GridMasonryLayout::MasonryLayoutPhase layoutPhase) { ASSERT(m_gridAxisTracksCount); For example
https://wpt.live/css/css-grid/masonry/tentative/column-empty-masonry-container-001.html
fantasai
Comment 3
2025-11-04 20:55:44 PST
Created
attachment 477301
[details]
patch Rebased over main. Getting 91 tests crash now, all hitting a "not reached" assert in InlineItemsBuilder::collectInlineItems(). Sample of crashing tests: imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/alignment/masonry-align-content-001.html imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/intrinsic-sizing/masonry-intrinsic-sizing-cols-002-auto.html imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/item-placement/masonry-item-placement-003.html imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/items/column-item-percentage-sizes-002.html imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/track-sizing/auto-repeat/intrinsic-auto-repeat/row-auto-repeat-auto-006.html
fantasai
Comment 4
2025-11-05 10:22:07 PST
Pull request:
https://github.com/WebKit/WebKit/pull/53460
EWS
Comment 5
2025-11-07 13:29:48 PST
Committed
302746@main
(ec8a41f79f5b): <
https://commits.webkit.org/302746@main
> Reviewed commits have been landed. Closing PR #53460 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