W3C home > Mailing lists > Public > www-style@w3.org > October 2013

Re: [css-grid] Intrinsic / preferred logical widths on the grid element

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 1 Oct 2013 16:43:05 -0700
Message-ID: <CAAWBYDAV12+ffw7pFoaEPXeb9-Ry-XUnNH6_F=EVcsVu8i7oqA@mail.gmail.com>
To: Julien Chaffraix <jchaffraix@google.com>
Cc: www-style list <www-style@w3.org>
On Tue, Oct 1, 2013 at 4:38 PM, Julien Chaffraix <jchaffraix@google.com> wrote:
> Hi everyone,
>
> 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.

~TJ
Received on Tuesday, 1 October 2013 23:43:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:02 UTC