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

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.

~Daniel


On 01/26/2012 03:47 PM, Tab Atkins Jr. wrote:
> I've just now finished the "Layout Algorithm" section of the flexbox
> spec<http://dev.w3.org/csswg/css3-flexbox/#layout-algorithm>.  I'd
> appreciate a review, particularly step 2 of the main algorithm, and
> the whole "resolve the flexible lengths" sub-algorithm.  The latter is
> based closely off of my JS implementation, which I'm pretty sure gives
> ideal results, but I'm not certain (as evidenced by the issue I logged
> against it).
>
> ~TJ
>

Received on Friday, 27 January 2012 20:30:34 UTC