Re: [css-flexbox] Computation Algorithm

On Tue, May 11, 2010 at 3:16 PM, Andrew Fedoniouk <news@terrainformatica.com
> wrote:

> Looking on this document in Mozilla:
> http://terrainformatica.com/w3/mozilla-flex-2.htm
>
> I am getting this rendering:
> http://terrainformatica.com/w3/mozilla-flex-2.png
>
> Two boxes here are defined as:
>
> #box2 { box-flex: 1.0; width:200px; background:gold;}
> #box3 { box-flex: 2.0; width:200px; background:red;}
>
> According to the name of the property ("box-flex") I would expect that box3
> (flex:2) and box2 (flex:1)
> widths will be in proportion 2:1. At least box3 should be wider than box2.
> But in fact box3 is smaller! That is completely unexpected
> as all other properties of these two elements are the same.
>

That's not how Gecko's box-flex works. box3 is twice as flexible as box2,
whether you're increasing or decreasing from the preferred 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 03:31:44 UTC