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

Re: [css3-flexbox] intuitivity and width computation rules

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 12 Jan 2011 17:25:58 -0500
Message-ID: <4D2E2A76.1060104@mit.edu>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
CC: www-style list <www-style@w3.org>
On 1/12/11 5:37 AM, Daniel Glazman wrote:
> Here's a good example:
>
> http://glazman.org/forCSSWG/flexbox-test.html
>
> (use Firefox4 beta or WebKit)
>
> Nobody - except the CSS WG itself and I'm not even sure - will ever
> understand why the paragraphs make the first flexing box of the second
> section grow...

Uh... it's really not that hard.

The testcase doesn't specify any widths for any of the boxes.  So they 
all end up using shrink-wrap sizing.  If there's any space left over 
after that, it's allocated proportionally to the box-flex values.

> But more important, nobody will ever understand what needs to be done
> to work around this, i.e. go back to the behaviour all web designers
> expect: the first box of the first and second sections should have
> same width whatever the content.

In that case you need to say what width that is, no?  This testcase .... 
doesn't.

-Boris
Received on Wednesday, 12 January 2011 22:27:02 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:36 GMT