W3C home > Mailing lists > Public > www-style@w3.org > February 2011

Re: [css3-flexbox] Flexbox needs to define where the baseline of a box is

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 18 Feb 2011 17:08:51 -0800
Message-ID: <AANLkTimaawxrWsKGR7w807rL9RVKhecpsM-y0P44nKw6@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style list <www-style@w3.org>, Alex Mogilevsky <alexmog@microsoft.com>
On Fri, Feb 18, 2011 at 5:00 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 2/18/11 5:38 PM, Tab Atkins Jr. wrote:
>> I suspect you intend that rule 4.2 would remove that final space,
>> assuming there is a space before the inline flexbox.
> Actually, it would be independent of whether there is a space before the
> inline flexbox; I would think that an inline flexbox acts just like an
> inline-block in this sense.

Hmm, I don't see that.  Assuming code like <div
style="display:flexbox;">  </div> (two spaces), rule 1 doesn't apply
(no linefeeds), rule 2 doesn't apply (wrong white-space), rule 3
doesn't apply (no linefeeds), rule 4.1 doesn't apply (everything's a
space), and rule 4.2 removes the second space only.

In the second group of rules, rule 1 would remove the space, but that
doesn't happen until lines are laid out, which logically can't occur
until the box tree has been constructed.  So an anonymous block has
already been wrapped around the remaining space, and it's the block's
job to report its own baseline, not the flexbox's.  This is presumably
already defined.

Received on Saturday, 19 February 2011 01:09:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:56 UTC