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: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 18 Jul 2012 13:33:19 -0400
Message-ID: <5006F35F.2070802@inkedblade.net>
To: www-style@w3.org
On 07/18/2012 12:03 PM, Brad Kemper wrote:
> On Jul 18, 2012, at 7:44 AM, "Kang-Hao (Kenny) Lu"<kennyluck@csail.mit.edu>  wrote:
>> (12/07/12 0:33), Alex Mogilevsky wrote:
>>> It is possible to define it that way, it was that way at some point.
>>> However there are some non-trivial details to be defined, the
>>> position in the middle of the space seems as random as any other, it
>>> is more complicated to implement, all for the benefit of something
>>> that nobody could come up with a sensible use case for.
>> Do we have use cases for the 'auto' location of a absolutely positioned
>> flex item then? And what are they?
> Well, for non-flex situations, I sometimes create display-when-parent-is-hovered absolutely positioned help bubbles. They are often at the right side of the containing block, by using 'right:100%', but vertically positioned relative to the parent element (such as a one line, static-positioned block) by using 'top:auto; bottom:auto'. So, I could imagine the usefulness of doing something similar inside a flex box.

But wouldn't you want to place the abspos *inside* the flex item
in those cases, rather than before or after it?

Received on Wednesday, 18 July 2012 17:33:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:19 UTC