- From: Julien Chaffraix <jchaffraix@google.com>
- Date: Tue, 22 Oct 2013 16:03:36 -0700
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- Cc: www-style list <www-style@w3.org>
>> AFAICT there is no definition for the intrinsic / preferred logical >> widths on the grid element. >> >> Currently Blink has a set of heuristics to return something in this >> case but it wasn't really good and duplicated some of the logic from >> the layout algorithm found in the specification. >> >> It turns out that if you run the algorithm [1] with >> AvailableLogicalSpace = 0, you get accurate answers without requiring >> any extra code (and no layout as the algorithm stands [2]): >> - The sum of the grid tracks' UsedBreadth is the minimum logical width >> - The sum of the grid tracks' MaxBreadth is the maximum logical width >> >> Would that sound reasonable as a definition for intrinsic sizes? >> >> Thanks, >> Julien >> >> [1] http://dev.w3.org/csswg/css-grid/#function-ComputeUsedBreadthOfGridTracks >> [2] However the issue of orthogonal writing mode between the grid >> element and the grid items could change that. > > It sounds like this works. Blink made the change some time ago [1]. Should we update the specification to include this definition for the intrinsic / preferred logical widths on the grid element? Thanks, Julien [1] http://src.chromium.org/viewvc/blink?view=revision&revision=159189
Received on Tuesday, 22 October 2013 23:04:24 UTC