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 15:31:12 +1200
Message-ID: <AANLkTikNp3ksNkDYZdIBW9ywzExLlrQ5VlwZBJxQCviN@mail.gmail.com>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: www-style@w3.org
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.

"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
Received on Tuesday, 11 May 2010 03:31:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:34 UTC