Re: [css3-flexbox] Changing abspos placeholders to atomic inlines

On Wed, May 30, 2012 at 11:54 AM, Alex Mogilevsky <alexmog@microsoft.com> wrote:
>> From: Daniel Holbert [mailto:dholbert@mozilla.com]
>> Sent: Tuesday, May 29, 2012 6:22 PM
>>
>> > I suppose the new solution is not that much harder to do, it is very
>> > little code elsewhere, but there is new behavior to define, implement
>> > and test... Can somebody explain why it is better?
>>
>> I had the same reaction to this change, FWIW...
>
> It looks like at least two implementations don't like the change to atomic inline. Just in favor of stability that should be enough to revert the change and get to what it has been for last 7 years or so.

Hm, I didn't realize the old flexbox did have that behavior in practice.

The reason we made the change is because someone (Anton?) pointed out
that inlines don't respect 'height', so the placeholder's actual
dimensions are 0px wide and 'line-height' tall.

However!  A linebox containing only placeholders and collapsed
whitespace becomes a phantom linebox in tables, and doesn't take up
any space whatsoever.  We could just do the same thing here, and also
achieve our desired result (that abspos placeholders don't contribute
to the height of items).

~TJ

Received on Wednesday, 30 May 2012 22:07:15 UTC