W3C home > Mailing lists > Public > www-style@w3.org > May 2010

[css3-flexbox] flexbox baseline

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Fri, 28 May 2010 06:15:29 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>
Message-ID: <5258A1A783764C478A36E2BC4A9C497E0B3018@tk5ex14mbxc105.redmond.corp.microsoft.com>
> -----Original Message-----
> From: Tab Atkins Jr. [mailto:jackalmage@gmail.com]
> Sent: Wednesday, May 26, 2010 5:43 PM
> > ·         Where is the baseline of an inline-box?
> >
> > Again, implementations differ. I am not sure I have a preference.
> > Where should it be?
> What's the baseline of an inline-table?  I suspect inline-box should act
> similarly.

Baseline of inline-table is the baseline of its first row.
However, baseline of inline-block is the baseline of its *last* line.

I think inline-box is more like inline-table than like inline-block. I was always curious though why inline-block and inline-table are opposite -- there must be a reason!

BTW Mozilla and Webkit disagree here:
	-- Mozilla takes baseline of the first item (if vertical); if pack is 'end' or 'center' the baseline is where it would have been with no pack, which looks like a bug. 
	-- Webkit uses the baseline of the last item in document order (this becomes the top item in vertical reverse box). 
Received on Friday, 28 May 2010 06:16:06 UTC

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