W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2019

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Tue, 05 Feb 2019 21:20:14 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-406979249-1549401613-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:43 UTC