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

[css3-flexbox] min/max main-size of flexbox

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Tue, 8 May 2012 04:16:38 +0000
To: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <2C86A15F63CD734EB1D846A0BA4E0FC81A3EE128@CH1PRD0310MB381.namprd03.prod.outlook.com>
 From: fantasai [mailto:fantasai.lists@inkedblade.net] 
 Sent: Wednesday, May 02, 2012 4:42 PM
 To: www-style@w3.org
 Subject: [css3-flexbox] implied minimum size of flex items
 
 # Determine the main size of the flexbox using its main size 
 property.
 
 This needs to be clear that it handles min/max constraints.

This is a bit complicated actually.

Max-width or max-height is important to consider when wrapping items into flexbox lines. But always restricting line lengths to specified max size is not correct either.

If parent layout is also a flexbox, it will need to know max-content without min/max-width/height constraints, of flex algorithm will produce incorrect results.

This step of the algorithm (step 4) needs to mention min/max, but also note that parent layout must be able to suppress that.

Alex
Received on Tuesday, 8 May 2012 04:17:20 GMT

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