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

Re: [CSS3] Flexible Flow Module, proposal.

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 14 Apr 2009 16:13:27 -0500
Message-ID: <dd0fbad0904141413q3aeec087v1053395e9679c381@mail.gmail.com>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: Zack Weinberg <zweinberg@mozilla.com>, robert@ocallahan.org, David Hyatt <hyatt@apple.com>, www-style <www-style@w3.org>
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".

Received on Tuesday, 14 April 2009 21:14:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:35 UTC