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

Re: Flexbox Draft, with pictures!

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 1 Jun 2010 10:51:03 -0700
Message-ID: <AANLkTikJ7mPH4G-VrPZbq8JDhy-NxnBU945jIGlq2Szz@mail.gmail.com>
To: Alex Mogilevsky <alexmog@microsoft.com>
Cc: David Hyatt <hyatt@apple.com>, www-style list <www-style@w3.org>
On Tue, Jun 1, 2010 at 10:13 AM, Alex Mogilevsky <alexmog@microsoft.com> wrote:
>> -----Original Message-----
>> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On
>> Behalf Of Tab Atkins Jr.
>> Sent: Tuesday, June 01, 2010 10:06 AM
>> > Actually eliminating box-align or box-pack – I don’t think that’s necessary.
>> > These are intuitive and don’t complicate implementation, even if the
>> > same can be done in a different way.
>> But how does it work with flex units?  pack/align are top-down layout
>> strategies, while flex units are bottom-up.  The two are in conflict by default,
>> unless you specify pack/align in terms of setting default values for some
>> flexible lengths.
>> That's not going to be easy, though, since the default values for margin and
>> padding are 0, not 'auto' - that seems inconsistent with magic behavior based
>> on pack/align.
> Actually I don't see anything difficult there.
> - "pack" has any effect only after any flex distribution is exhausted and there is still empty space.

Does that change the behavior of a "width:auto;margin:0;" child, which
right now is treated like "width:1fl;margin:0" and automatically
expanded as much as it can be?

> - "align" has to deal with non-zero margins and padding already; if those are calculated using flex or anything else it doesn't change any of align code.

Would this have any effect if any of the vertical lengths were
flexible, or does it only have an effect when the total height of the
margin box is inflexible (either because all the vertical lengths are
inflexible, or if all of the flexible ones have hit their maximum
size)?  That is, what effect does box-align:center have on a child
with "margin: 0 0 1fl 0;" (which aligns the child to the top).
Similarly, does box-align:stretch change the behavior of height:auto?
(Again, right now height:auto computes to 1fl if it's the only
flexible vertical length on the box, or 'fit-content' otherwise.)

I personally doubt the additional complexity in the model to handle
pack/align alongside flex lengths is worthwhile, especially if you
have to avoid using flexible lengths at all for them to have a
noticeable effect.
Received on Tuesday, 1 June 2010 17:51:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:35 UTC