W3C home > Mailing lists > Public > www-style@w3.org > May 2010

Re: [css-flexbox] Computation Algorithm

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 11 May 2010 18:04:36 +1200
Message-ID: <AANLkTin2FDULJUgLGXrNcDsO7N64Y8H1DoYRQOFboMSo@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Andrew Fedoniouk <news@terrainformatica.com>, www-style@w3.org
On Tue, May 11, 2010 at 4:54 PM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> Interesting.  If you remove the text from #box2 and #box3 (and set
> explicit heights, so you can see them), they do have exactly a 1:2
> relationship.  Some quick testing shows that they're ignoring the
> width:0 and instead using the minimum width of the text as their
> preferred widths in the flex calculation.  This only happens if the
> width property is less than the width of the text.
>

I think what's happening is that the min-width of the boxes is being set to
the sum of the min-widths of the children, and then 'width' is constrained
by that min-width.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Tuesday, 11 May 2010 06:05:09 GMT

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