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:06:35 +1200
Message-ID: <AANLkTin3NnsHh9fEdtb-TAdAEISafltpMlvZ0C1i_BYf@mail.gmail.com>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style@w3.org
The intuition is not hard:
1) every element has a preferred width
2) if the preferred widths add up to less than the width of the container,
the leftover width is allocated to the children in proportion to their
box-flex values
3) if the preferred widths add up to more than the width of the container,
the excess width is taken away from the children in proportion to their
box-flex values
I don't think this is difficult for authors to understand.

I'd have to talk to XUL developers more to understand how this concept of
preferred width is useful to them. I'll blog and see if I can get some to
turn up here.

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:07:07 GMT

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