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

[css3-flexbox] Baseline of flexboxes and flexbox items

From: Morten Stenshorne <mstensho@opera.com>
Date: Tue, 10 Apr 2012 14:18:46 +0200
To: www-style@w3.org
Message-ID: <87pqbfkcex.fsf@aeneas.oslo.osa>
The baselines of flexboxes and flexbox items don't seem to be defined in
the spec, apart from how baseline aligned items line up and how they
affect the cross size of the flexbox. It doesn't actually say how the
baselines are calculated.

I would imagine that the spec should say something analogous to what
http://www.w3.org/TR/CSS21/tables.html#height-layout has to say for
tables, table rows and table cells.

Something like:

The baseline of a flexbox item is the baseline of the first in-flow line
box in the item, or the first in-flow table-row, or the first flexbox,
whichever comes first.

The baseline of a flexbox is the baseline of the first line in the
flexbox. The baseline of a flexbox line is the baseline of the
baseline-aligned items on that line. If no baseline-aligned items exist
on the line, the line's baseline is the largest cross-end content edge
value among the items on the line.

Yes?

The spec should also mention something about the baseline of flexboxes
that have their main axis orthogonal to the inline axis. Just use the
cross-end margin edge of the flexbox?

-- 
---- Morten Stenshorne, developer, Opera Software ASA ----
---- Office: +47 23693206 ---- Cellular: +47 93440112 ----
------------------ http://www.opera.com/ -----------------
Received on Tuesday, 10 April 2012 12:19:19 GMT

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