Bug 303853

Summary: [css-grid-3] Need to collapse empty auto-fit tracks in masonry / grid-lanes layout
Product: WebKit Reporter: fantasai <fantasai.bugs>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bfulgham, brandonstewart, fantasai.bugs, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 245555    

fantasai
Reported 2025-12-09 10:05:28 PST
Although the earlier spec treated auto-fit the same as auto-fill, the current spec uses a heuristic to determine which tracks are likely to be empty, and thus could be collapsed prior to masonry placement. We don't implement this heuristic, so we are not collapsing those tracks, causing us to fail the following WPT tests: track-sizing/auto-repeat/column-auto-repeat-017.html track-sizing/auto-repeat/column-auto-repeat-018.html track-sizing/auto-repeat/column-auto-repeat-021.html track-sizing/auto-repeat/column-auto-repeat-022.html track-sizing/auto-repeat/column-auto-repeat-023.html track-sizing/auto-repeat/column-auto-repeat-026.html track-sizing/auto-repeat/row-auto-repeat-015.html track-sizing/auto-repeat/row-auto-repeat-016.html track-sizing/auto-repeat/row-auto-repeat-019.html track-sizing/auto-repeat/row-auto-repeat-020.html track-sizing/auto-repeat/row-auto-repeat-021.html track-sizing/auto-repeat/row-auto-repeat-024.html
Attachments
Radar WebKit Bug Importer
Comment 1 2025-12-09 10:05:35 PST
Note You need to log in before you can comment on or make changes to this bug.