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

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...

~TJ

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