[csswg-drafts] [css-grid] Sizing algorithm for span 2 should be a generalization of span 1 (#3616)

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

== [css-grid] Sizing algorithm for span 2 should be a generalization of span 1 ==
I don't understand why there is an algorithm for [tracks with a span of 1](https://drafts.csswg.org/css-grid/#algo-single-span-items) (and intrinsic minimum and non-flexible maximum), and another one for [tracks with a span of 2](https://drafts.csswg.org/css-grid/#algo-spanning-items) (not spanning tracks with flexible maximums).

I think the former should be a reduction of the latter, but the results are different:

 - With `n=2`, tracks with intrinsic minimums end up at least as big as the minimum contribution. For `n=1`, this is only ensured for `auto` minimums.
 - With `n=2`, an `auto` minimum under a sizing min/max-content constraint behaves as `min/max-content`. With `n=1` it's not exactly like this, because the value is later clamped between the minimum contribution and the max track sizing function.

Why the differences?


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

Received on Tuesday, 5 February 2019 21:20:16 UTC