[Webkit-unassigned] [Bug 267525] CSS grid (auto-fit) combined with container-type does not work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 16 16:46:57 PST 2024


https://bugs.webkit.org/show_bug.cgi?id=267525

--- Comment #1 from Oriol Brufau <obrufau at igalia.com> ---
https://drafts.csswg.org/css-grid/#valdef-repeat-auto-fit

> The auto-fit keyword behaves the same as auto-fill, except that after grid item placement any empty repeated tracks are collapsed.

It seems that WebKit understands this as having to collapse the tracks when there is size containment.

I don't recall the details of the interaction of size containment with grid, but I guess the tracks should only collapse during intrinsic sizing, not when laying out for real.

You can see this in Blink, use `display: inline-grid; border: 10px solid magenta` on the grid. The grid is 0px wide when using auto-fit, and 150px wide when using auto-fill. But in both cases the column is 150px wide.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240117/fe8b86f1/attachment.htm>


More information about the webkit-unassigned mailing list