W3C home > Mailing lists > Public > www-style@w3.org > March 2012

[css-grid-layout] Defining shrink-to-fit for Grid Elements

From: Chris Jones <cjon@microsoft.com>
Date: Fri, 30 Mar 2012 21:28:29 +0000
To: "www-style@w3.org" <www-style@w3.org>
CC: Phil Cupp <pcupp@microsoft.com>, Markus Mielke <mmielke@microsoft.com>, Sylvain Galineau <sylvaing@microsoft.com>
Message-ID: <314AEA692CE6754A854276304D0CD6C00C5B23ED@TK5EX14MBXC201.redmond.corp.microsoft.com>

We've recently opened an issue in Bugzilla discussing how the Grid spec should describe shrink-to-fit behavior of Grid element . [1]

Our preferred answer for this, in the context of the shrink-to-fit section of the basic box model spec [2] would be:

Preferred minimum width is the sum of the UsedBreadths of the column tracks just before step 3 in ComputeUsedBreadthOfGridTracks. [3]

Preferred width is the sum of the used breaths of the grid tracks after the entire track sizing algorithm has been run with infinite space.

Questions and/or feedback on any of the above issues is welcome. Thanks!


[1]: https://www.w3.org/Bugs/Public/show_bug.cgi?id=16588
[2]: http://www.w3.org/TR/css3-box/#shrink-to-fit
[3]: http://www.w3.org/TR/css3-grid-layout/#grid-track-sizing-algorithm0
Received on Friday, 30 March 2012 21:29:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:14 UTC