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

Re: [css-regions][css-flexbox] Interaction between flexboxes and regions

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 26 Jun 2013 10:23:27 -0700
Message-ID: <CAAWBYDD9khmuUpYejSmSKOxcDgr6R7m25=xZu2L9vB1Ui7fcmg@mail.gmail.com>
To: Catalin Badea <badea@adobe.com>
Cc: Alan Stearns <stearns@adobe.com>, "www-style@w3.org" <www-style@w3.org>
On Wed, Jun 26, 2013 at 1:56 AM, Catalin Badea <badea@adobe.com> wrote:
> On 6/18/13 1:33 AM, "Alan Stearns" <stearns@adobe.com> wrote:
>>Thanks for bringing this up. My first thought is that the regions
>>processing model should merely be an input to the flex layout algorithm.
>>So when flex asks for a region height, we run through the entire
>>processing model to get an answer, without reference to the flex layout
>>algorithm.
>
> I believe this might require a multi-step layout if more complex
> situations are to be handled. Consider the following case:
> <flexbox>
>         <region_1 height=auto></region_1>
> </flexbox>
> <flexbox>
>         <region_2 height=auto></region_2>
> </flexbox>
>
> The layout for the second flexbox would require the height for region_2
> to be computed which can only be known _after_ the content has been flowed
> in region_1 and the first flexbox has flexed its size.

No, this'll be the same as the simpler case before.  Both regions will
be laid out first as if they had no content in them, then, after
flexing/stretching/etc is finished, they'll be filled with whatever
content fits.

~TJ
Received on Wednesday, 26 June 2013 17:24:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC