W3C home > Mailing lists > Public > www-style@w3.org > April 2012

Re: [css3-flexbox] Baseline of flexbox (Was: [CSSWG] Minutes [...] 2012-04-18)

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 19 Apr 2012 10:34:56 -0700
Message-ID: <CAAWBYDCPjEhdFECnP=4AvdaLe10udbmv4cTPrZ087PGrQ1TA4A@mail.gmail.com>
To: Morten Stenshorne <mstensho@opera.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
On Thu, Apr 19, 2012 at 12:32 AM, Morten Stenshorne <mstensho@opera.com> wrote:
> Thank you for addressing these issues!
>
> fantasai <fantasai.lists@inkedblade.net> writes:
>
>>   - RESOLVED: Baseline of flexbox is baseline of baseline-aligned boxes if
>>               any, otherwise take first child
>
> Use the baseline of baseline-aligned boxes _on the first line_, I
> suppose?
>
> And if there are no such boxes, use the "first child"? I would expect
> "first box on the first line", not "first child". What if the first
> child has a low flex-order and ends up on the seventh line? Still makes
> sense to use it?

Good points!

Yes, the baseline of the first line.  And yes, the first child after
flex-order rearranging.


> One more question regarding the situation where there are no baseline
> aligned boxes (on the first line). The child to use is obviously not
> baseline aligned then. What does "take first child" mean? Should we
> still use that box's baseline, or should we use the cross-end
> content/border/margin edge or something like that?
>
> I'm probably asking because
> http://www.w3.org/TR/CSS2/tables.html#height-layout says:
>
>    "If a row has no cell box aligned to its baseline, the baseline of
>     that row is the bottom content edge of the lowest cell in the row."
>
> Table cells don't expose their (hypothetical) baseline in any way if
> they are not baseline aligned. My mind may be contaminated by too much
> table layout work for too long, but if this makes sense, it probably
> makes sense to flexbox items too. :)

You use the box's baseline, as defined by it's display type.

I... can't actually find the definition of an inline-table's baseline.

~TJ
Received on Thursday, 19 April 2012 17:35:50 GMT

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