Created attachment 328159 [details] Test case to reproduce the bug The spec is quite clear regarding this (https://drafts.csswg.org/css-grid/#min-size-auto): "However, if the grid item spans only grid tracks that have a fixed max track sizing function, its specified size and content size in that dimension (and the input to the transferred size in the other dimension) are further clamped to less than or equal to the stretch fit the grid area’s size (so as to prevent the automatic minimum size from forcing overflow of its fixed-size grid area)." It says that if the max track sizing function is fixed, it should clamp the automatic minimum size. In the attached example we have a grid container with: grid-template-columns: minmax(auto, 0px); So the automatic minimum size of the item needs to be clamped to 0px. And the final size of the track should be 0px. This is basically what this test wrongly checks: http://w3c-test.org/css/css-grid/grid-items/grid-minimum-size-grid-items-017.html Firefox does this right.
Created attachment 328160 [details] Expected
Created attachment 329088 [details] Patch
Comment on attachment 329088 [details] Patch Clearing flags on attachment: 329088 Committed r225776: <https://trac.webkit.org/changeset/225776>
All reviewed patches have been landed. Closing bug.
<rdar://problem/35988227>