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

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

From: Jeremie Patonnier <jeremie.patonnier@gmail.com>
Date: Wed, 12 Jan 2011 17:48:18 +0100
Message-ID: <AANLkTinhUB9WGWq1Bdq8N2sXgWbU4Dxhu00ovHs4XQwY@mail.gmail.com>
To: www-style@w3.org
Cc: daniel@glazman.org
Hello,

I've tried to trick this out today and I've found a workaround for this
issue (only tested with FF3.6+ yet)

According to the spec, by default, all the children of a box have a there
width property setting with the value auto.

If you set the width property of each flexible box to 0, then it work as
intuited.

This is quite logical because, the remainig space is computed on the basis
of a 0 pixel width value so in this case, the remaining space is equal to
the width of the parent box.

But any way, it works but it is really surprising (even if logical when you
think about it).

May be it could be simpler to understand for end users to have a default
value of 0 for the a box's children.
Do you think it's something acceptable ?

-- 
Jeremie
.............................
Web : http://jeremie.patonnier.net
Twitter : @JeremiePat <http://twitter.com/JeremiePat>
Received on Wednesday, 12 January 2011 16:48:50 GMT

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