- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Tue, 14 Apr 2009 16:13:27 -0500
- 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". ~TJ
Received on Tuesday, 14 April 2009 21:14:04 UTC