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

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

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Mon, 30 Jan 2012 07:27:56 +0000
To: "www-style@w3.org" <www-style@w3.org>, Tab Atkins Jr. <jackalmage@gmail.com>
Message-ID: <D51C9E849DDD0D4EA38C2E539856928412E24EE3@TK5EX14MBXC218.redmond.corp.microsoft.com>
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?
Received on Monday, 30 January 2012 07:28:52 GMT

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