[csswg-drafts] [css-grid] Dimensions unclear when clamping content-based minimum size (#3573)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-grid] Dimensions unclear when clamping content-based minimum size ==
From https://drafts.csswg.org/css-grid/#content-based-minimum-size,

> if the grid item spans only grid tracks that have a fixed max track sizing function, its specified size suggestion and content size suggestion in that dimension (and the input to the transferred size suggestion in the other dimension) are further clamped to less than or equal to the stretch fit the grid area’s size

The other dimension is mixed in between, so it's not much clear

 - whether "the grid item spans only grid tracks that have a fixed max track sizing function" refers to both dimensions, the given dimension, or the given dimension when clamping the specified and content size suggestions but the other dimension for the transferred size suggestion.
 - to which dimension the "stretch fit the grid area’s size" refers.
 - whether the limit should be converted through the aspect ratio when it's in the other dimension.

I would just keep it simple and check track sizing functions only in the given dimension, clamp in the given dimension, to the size in the given dimension.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3573 using your GitHub account

Received on Wednesday, 30 January 2019 13:38:51 UTC