[css-grid] Automatic minimum size is not clamped if min track sizing function is auto |
||
Issue descriptionThe 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.
,
Nov 23 2017
,
Nov 30 2017
Issue 789927 has been merged into this issue.
,
Dec 7 2017
So is Firefox's(59) current rendering wrong?
,
Dec 7 2017
"grid-template-columns: minmax(min-content, 0px)" This also causes two browsers to render inconsistencies.
,
Jan 2 2018
@yirosi, sorry I don't know why I missed your comments. Firefox does it right for the item, as it has 0px, the same than in Chromium after my patch (you don't see the "lime" background). However it seems Firefox does it wrong to compute the intrinsic width of the grid container, and it includes the size of the item. I've just reported the bug to Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1427608 |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Nov 23 2017