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

Re: [css3-flexbox] Layout algorithm finished, review requested

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 27 Jan 2012 12:35:14 -0800
Message-ID: <CAAWBYDC6P+pGgB+HsSNGsPiDzc9c0Ug_cGL9+QQyZpZyZHshWg@mail.gmail.com>
To: Daniel Holbert <dholbert@mozilla.com>
Cc: www-style list <www-style@w3.org>
On Fri, Jan 27, 2012 at 12:30 PM, Daniel Holbert <dholbert@mozilla.com> wrote:
> Hi Tab,
> I noticed one possibly-broken chunk -- in the line-wrapping description, the
> ED has this text:
>> If the flexbox is multi-line, group the flexbox items
>> into multiple lines:
>> 1. Determine the flexbox's available space by finding
>>    the size of the flexbox's parent's content box in the
>>    flexbox's main axis
> http://dev.w3.org/csswg/css3-flexbox/#layout-algorithm
> This seems to assume an auto-sized flexbox (where we can grow to fill the
> parent's available size).  But what if the flexbox has a specified size?
> e.g. if I have
>  <div style="display:flexbox; width: 100px">
> then I wouldn't expect the parent's available width to matter, for the
> purposes of doing line-wrapping inside of that flexbox.

Yes, that's broken.  It's easy to patch if we just deal with
explicit-width and auto-width, but somewhat more complex if we handle
min/max/fit-content as well.  Hmm...

Received on Friday, 27 January 2012 20:36:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:10 UTC