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

Re: [css3-flexbox] flex-line-pack and stretch

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 30 Jan 2012 09:54:04 -0800
Message-ID: <CAAWBYDBeD277Dy1J0msASCru+2u0zfRC2YSOmkmig7HeGDSw5A@mail.gmail.com>
To: Alex Mogilevsky <alexmog@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>
On Sun, Jan 29, 2012 at 11:27 PM, Alex Mogilevsky <alexmog@microsoft.com> wrote:
> The description of how line cross size is determined in multiline flexbox
> assumes that line height depends only on items in the line. It doesn't have
> an option for line to stretch to available cross-size of flexbox.
>
> That creates a problem: a multiline flexbox with only one line behaves
> differently from a single-line flexbox -- it is not possible to align all
> items to flexbox, it is only possible to align with siblings.
>
> There should be an option to make lines stretch to flexbox. One way to do
> that is to add
>
>      "flex-line-pack:stretch"
>
> value, which would stretch all lines equally in cross direction to fill
> flexbox -- as if their cross size was flex(1 auto).
>
> What do you think?

Sounds fine to me.  'stretch' doesn't have an easy model for
extension, but flex(1 auto) seems as good a definition as any.  Done.

~TJ
Received on Monday, 30 January 2012 17:54:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:49 GMT