Re: [css-flexbox] Computation Algorithm

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 UTC