W3C home > Mailing lists > Public > www-style@w3.org > July 2012

Re: [css3-flexbox] absolutely positioned flex item should not have side effect on space distribution

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 11 Jul 2012 08:36:50 -0700
Message-ID: <CAAWBYDAHBgYb_1rmkchMVH-R+9JLV9aJqO6-B4=ZwZ40F7BH4A@mail.gmail.com>
To: John Hax <johnhax@gmail.com>
Cc: www-style@w3.org
On Wed, Jul 11, 2012 at 3:34 AM, John Hax <johnhax@gmail.com> wrote:
> Absolutely positioned flex item should not have side effect on space
> distribution. Since space-* is about distribute spaces evenly,
>
>   A--B--C
>
> with B absolutely positioned, should be rendered as
>
>   A--C
>
> , where B is positioned at the middle of A and C if all
> 'top'/'bottom'/'right'/'left' are 'auto'。

The current behavior, where it does have an effect, is a side-effect
of abspos behavior.  It was done partially to be consistent with
abspos behavior in other display modes where they're observable
(abspos elements trigger the creation of an anonymous table-cell if
they're nestled between two other display:table-cell elements), and
partially to make it easier to define the "auto" position of abspos
elements.

~TJ
Received on Wednesday, 11 July 2012 15:37:41 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:56 GMT