W3C home > Mailing lists > Public > www-style@w3.org > June 2008

Re: Publishing the flexible box model

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 06 Jun 2008 08:12:34 -0700
Message-ID: <484953E2.1040504@inkedblade.net>
To: robert@ocallahan.org
CC: Andrew Fedoniouk <news@terrainformatica.com>, dbaron@dbaron.org, www-style@w3.org

Robert O'Callahan wrote:
> How do flex-units on inline elements interact with text-align:justify? E.g.
> <div style="text-align:justify;">abcd efgh <span 
> style="padding:1*">Hello</span> ijkl mnop</div>
> where there's a soft line break after 'ijkl'. Do the spaces get the 
> extra space, or does the flex get it?

Flex should get it.

> How do vertical flex-units on inline elements interact with baseline 
> alignment? E.g. if I have <img style="height:1*">, that's supposed to 
> make the image height equal to the line-box height, but the image is 
> supposed to be baseline-aligned so the line-box height has to be greater 
> than the image height...

No idea.

> How do flex-units interact with collapsing margins? E.g.
> <div style="overflow:auto; height:500px;">
>   <div style="height:1*; margin:1*;">Hello</div>
>   <div style="height:2*; margin:2*;">Kitty</div>
> </div>
> How does that work? Allocating flex height first and then collapsing 
> margins means the child divs don't fill the container. But trying to 
> collapse margins before resolving the flex heights seems crazy.

I would collapse the adjacent flex margins so that 1* collapsing with
2* becomes a 2* gap. Then distribute the remaining space accordingly.

> These are just a few of the questions that would have to be resolved. A 
> great deal of the CSS spec would have to be carefully analyzed for 
> interactions with flex-units, and many parts of the spec will become 
> even more complicated.

I do agree with Andrew that it should be possible to flex margins.

~fantasai
Received on Friday, 6 June 2008 15:13:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:07 GMT