Skip to content

Commit 3279299

Browse files
committed
[css-align] Make orthogonal flows synthesize baselines and behave like replaced elements.
1 parent d8de45c commit 3279299

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

css-align/Overview.bs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ Determining the Baselines of a Box</h2>
14391439
nominally associated with the first (last) line of text within the box.
14401440
The <a>alignment baseline</a> is one of these,
14411441
usually the dominant baseline of the <a>alignment container</a>.
1442-
(See 'alignment-baseline'.)
1442+
(See the 'alignment-baseline' property in [[CSS-INLINE-3]].)
14431443
Note that boxes might not have baselines in a particular axis.
14441444

14451445
The first and last <a>baseline sets</a> of a box
@@ -1548,12 +1548,21 @@ Baseline Alignment Terminology</h3>
15481548
This is possible only if they
15491549

15501550
<ul>
1551-
<li>share an <a>alignment context</a> whose axis is parallel to their <a>inline axis</a>
1552-
<li>either have the same <a>block flow direction</a> and <a>baseline alignment preference</a>,
1553-
or have opposite <a>block flow direction</a> and opposite <a>baseline alignment preference</a>
1554-
(in other words, the baselines that want to align are on the same side of the alignment context).
1551+
<li>Share an <a>alignment context</a> along an axis perpendicular to their baseline alignment axis.
1552+
<li>Have compatible <a>baseline alignment preferences</a>
1553+
(i.e., the baselines that want to align are on the same side of the alignment context).
1554+
15551555
</ul>
15561556

1557+
The <a>baseline alignment preferences</a> of two boxes are compatible if they have the same <a>block flow direction</a> and <a>baseline alignment preference</a>,
1558+
or have opposite <a>block flow direction</a> and opposite <a>baseline alignment preference</a>.
1559+
For this purpose, boxes that establish an <a>orthogonal flow</a>
1560+
are treated as having the same <a>block flow direction</a>
1561+
as their <a>alignment context</a>,
1562+
and their baselines are <a>synthesized</a> accordingly,
1563+
exactly as for replaced elements and other boxes that have no <a>natural baseline</a>.
1564+
1565+
15571566
Boxes <dfn lt="shared alignment context|alignment context" export>share an alignment context</dfn> along a particular axis when they are:
15581567

15591568
<ul>

0 commit comments

Comments
 (0)