- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Tue, 8 May 2012 07:52:33 +0200
- To: Alex Mogilevsky <alexmog@microsoft.com>
- Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
On Tue, May 8, 2012 at 6:16 AM, Alex Mogilevsky <alexmog@microsoft.com> wrote: > ± 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. No, because you *are* guaranteed, in the end, that no flexbox can be larger than its max size, you can use that information when sizing the flexbox itself. Otherwise you can end up with a flexbox that is larger than necessary, because all its items are constrained by a max size. ~TJ
Received on Tuesday, 8 May 2012 05:53:23 UTC