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

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

From: Daniel Holbert <dholbert@mozilla.com>
Date: Fri, 27 Jan 2012 12:30:04 -0800
Message-ID: <4F23094C.9020501@mozilla.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>
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

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.


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

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