Skip to content

Commit 11e92b7

Browse files
committed
[css-align] Move statement about spanning into details section, to avoid confusion. #1037
1 parent 45063f1 commit 11e92b7

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

css-align/Overview.bs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ Baseline Content-Alignment</h3>
803803
<dt>Table Cells:
804804
<dd>
805805
A <a>table cell</a> participates in first (last) <a>baseline content-alignment</a>
806-
in either its row or column (whichever matches its <a>inline axis</a>)
806+
in its startmost (endmost) row or column (whichever matches its <a>inline axis</a>)
807807
if its computed 'align-content' is ''first baseline'' (''last baseline'').
808808

809809
<dt>Flex Items:
@@ -821,7 +821,7 @@ Baseline Content-Alignment</h3>
821821
<dt>Grid Items:
822822
<dd>
823823
A <a>grid item</a> participates in first (last) <a>baseline content-alignment</a>
824-
in either its row or column (whichever matches its <a>inline axis</a>)
824+
in its startmost (endmost) row or column (whichever matches its <a>inline axis</a>)
825825
if its computed 'align-content' is ''first baseline'' (''last baseline''),
826826
and its computed 'align-self' or 'justify-self' (whichever affects its <a>block axis</a>)
827827
is ''align-self/stretch'' or ''self-start'' (''self-end'').
@@ -831,10 +831,6 @@ Baseline Content-Alignment</h3>
831831
whichever they end up equivalent to.
832832
</dl>
833833

834-
If a box spans multiple <a>shared alignment contexts</a>,
835-
it participates in first (last) <a>baseline content-alignment</a>
836-
within its start-most (end-most) <a>shared alignment context</a> along that axis.
837-
838834
When a box participates in first (last)
839835
<dfn export lt="baseline content-alignment|first-baseline content-alignment|last-baseline content-alignment">baseline content-alignment</dfn>
840836
it effectively aligns its start (end) edge
@@ -1347,15 +1343,11 @@ Baseline Self-Alignment</h3>
13471343
<dt>Grid Items:
13481344
<dd>
13491345
A <a>grid item</a> participates in first (last) <a>baseline self-alignment</a>
1350-
in its row or column
1346+
in its startmost (endmost) row or column
13511347
if its 'align-self' or 'justify-self' property (respectively)
13521348
computes to ''first baseline'' (''last baseline'').
13531349
</dl>
13541350

1355-
If a box spans multiple <a>shared alignment contexts</a>,
1356-
it participates in first (last) <a>baseline self-alignment</a>
1357-
within its start-most (end-most) <a>shared alignment context</a> along that axis.
1358-
13591351
When a box participates in first (last)
13601352
<dfn export lt="baseline self-alignment|first-baseline self-alignment|last-baseline self-alignment">baseline self-alignment</dfn>
13611353
it effectively first aligns its start (end) edge
@@ -1614,7 +1606,7 @@ Baseline Alignment Terminology</h3>
16141606
Boxes share an <dfn lt="shared alignment context|alignment context" export>alignment context</dfn>,
16151607
along a particular axis,
16161608
and established by a particular box,
1617-
.when they are:
1609+
when they are:
16181610

16191611
<ul>
16201612
<li>table cells in the same row, along the table's row (inline) axis, established by the row box
@@ -1631,6 +1623,15 @@ Baseline Alignment Terminology</h3>
16311623
not any of the properties defined in this module.
16321624
See [[CSS-INLINE-3]].
16331625

1626+
If a box spans multiple <a>shared alignment contexts</a>,
1627+
then it participates in first (last) baseline alignment
1628+
within its start-most (end-most) <a>shared alignment context</a> along that axis.
1629+
For example, a table cell spanning three rows
1630+
participates in <a>first-baseline alignment</a>
1631+
with the table cells in the first row that it spans,
1632+
or alternatively in <a>last-baseline alignment</a>
1633+
with the table cells in the last row that it spans.
1634+
16341635
The <a>baseline alignment preferences</a> of two boxes in a <a>baseline-sharing group</a> are compatible if they have:
16351636

16361637
* the same <a>block flow direction</a> and <a>baseline alignment preference</a>

0 commit comments

Comments
 (0)