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: Kang-Hao (Kenny) Lu <kennyluck@csail.mit.edu>
Date: Tue, 24 Jul 2012 17:22:39 +0800
Message-ID: <500E695F.5060903@csail.mit.edu>
To: Morten Stenshorne <mstensho@opera.com>
CC: fantasai <fantasai.lists@inkedblade.net>, John Hax <johnhax@gmail.com>, www-style@w3.org
I am a bit confused here. Let me ask some questions before I get too
confused.

(12/07/24 15:17), Morten Stenshorne wrote:
> fantasai <fantasai.lists@inkedblade.net> writes:
>> So far we've had Kang-hao and Brad Kemper weigh in on
>>
>>   B > A > C
>>
>> From implementer's perspective, I suspect it would be more like
>>
>>   C > B > A
>
> That's about right. :) What I read in the spec about abspos, back when I
> did the initial flexbox implementation, looked sane. That was C.
> 
> This is a corner case (well, that's what I'm thinking anyway, so I
> cannot provide any use cases), so keeping it easy to spec and implement
> would be nice. C is similar to how abspos behaves inside of table,
> table-row-group and table-row (anonymous table structural boxes are
> inserted).

s/anonymous table structural boxes/'inline' placeholder/?

> Allowing abspos boxes to live inside of a non-container sounds
> unpleasant (A / B), not only on the implementation side, but it also
> requires you to spec a lot of things. Cross position? Is it stretched?
> Flexed? Order?

So now the "no change" proposal C is having this problem (issue 17[1] -
Does 'order' affect abspos placeholders?). B certainly has this problem
too. Are you actually referring to (B / C), which have the concept of
"placeholders"?

[1] http://dev.w3.org/csswg/css3-flexbox/issues-lc-2012#issue-17

> It looks like B attempts to give the element "the position an element
> would have had in the normal flow" [1]. But then I think it should
> rather say that the static position is identical to that of the next
> flex item (or, if there is no next, then at main-end? Unless there's no
> preceding flex item, in which case we could pick main-start?). 

That'll be another proposal, yes.

> And then some justify-content stuff. That was the main axis position. 
> What about cross axis position? Honor align-items/align-self
> (obviously in a way that doesn't affect the cross size of the flexbox
> or its lines)?
> 
> My preferences:
> 
> C > world-wide coffee ban > B ~ A
> 
> A is simpler than B, but behavior A almost sounds like a bug report. :)
> 
> [1] http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
> 

Cheers,
Kenny
Received on Tuesday, 24 July 2012 09:23:13 GMT

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