W3C home > Mailing lists > Public > www-style@w3.org > April 2009

Re: [CSS3] Flexible Flow Module, proposal.

From: Giovanni Campagna <scampa.giovanni@gmail.com>
Date: Tue, 14 Apr 2009 23:17:24 +0200
Message-ID: <65307430904141417t5a19bd93x17edb6b87d70290b@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Andrew Fedoniouk <news@terrainformatica.com>, Zack Weinberg <zweinberg@mozilla.com>, robert@ocallahan.org, David Hyatt <hyatt@apple.com>, www-style <www-style@w3.org>
You should be able to use flexes any time a percentage is allowed, in theory.

2009/4/14 Tab Atkins Jr. <jackalmage@gmail.com>:
> I just realized this.  Normal static-flow elements can only use flex
> units within a container with the proper flow value.  However, there's
> no particular mention of whether or not that restriction applies to
> abspos/fixpos elements.
>
> Does it?  The restriction for normal elements is mostly to ensure that
> we have a good way of figuring out what "unused space" means when a
> dimension is unrestricted (like height for standard containers) so you
> don't have an element pushing its container to infinite size.  But
> abspos/fixpos elements don't change the dimensions of their
> positioning ancestor, so they should be able to use flexes in an
> unrestricted manner.
>
> So, can you use flex units on abspos/fixpos elements?  Position should
> take flexes without a problem, as should margin.  Padding still needs
> wording to the effect of "if a height/width isn't explicitly defined,
> there is no unused space in that direction".
>
> ~TJ
>
>
Received on Tuesday, 14 April 2009 21:17:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:46:58 GMT