Skip to content

Commit e1b0f2d

Browse files
committed
[css-align] Better define the conditions of baseline synthesis when baseline-aligning. Fixes #721.
1 parent 71d6c1a commit e1b0f2d

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

css-align/Overview.bs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,23 +1574,27 @@ Baseline Alignment Terminology</h3>
15741574

15751575
</ul>
15761576

1577-
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>,
1578-
or have opposite <a>block flow direction</a> and opposite <a>baseline alignment preference</a>.
1579-
For this purpose, boxes that establish an <a>orthogonal flow</a>
1580-
are treated as having the same <a>block flow direction</a>
1581-
as their <a>alignment context</a>,
1577+
The <a>baseline alignment preferences</a> of two boxes in a <a>baseline-sharing group</a> are compatible if they have:
1578+
1579+
* the same <a>block flow direction</a> and <a>baseline alignment preference</a>
1580+
* opposite <a>block flow direction</a> and opposite <a>baseline alignment preference</a>
1581+
1582+
For this purpose, boxes whose <a>block flow direction</a> is parallel to the <a>alignment context</a>’s axis
1583+
are treated as having a <a>block flow direction</a>
1584+
orthogonal to the <a>alignment context’s</a> axis
1585+
and directed end-ward relative to the box that establishes the <a>alignment context</a>,
15821586
and their baselines are <a>synthesized</a> accordingly,
15831587
exactly as for replaced elements and other boxes that have no <a>natural baseline</a>.
15841588

15851589

15861590
Boxes share an <dfn lt="shared alignment context|alignment context" export>alignment context</dfn> along a particular axis when they are:
15871591

15881592
<ul>
1589-
<li>table cells in the same row, along the table's row (inline) axis
1590-
<li>table cells in the same column, along the table's column (block) axis
1591-
<li>grid items in the same row, along the grid's row (inline) axis
1592-
<li>grid items in the same column, along the grid's colum (block) axis
1593-
<li>flex items in the same flex line, along the flex container's main axis
1593+
<li>table cells in the same row, along the table's row (inline) axis, established by the row box
1594+
<li>table cells in the same column, along the table's column (block) axis, established by the column box
1595+
<li>grid items in the same row, along the grid's row (inline) axis, established by the <a>grid container</a>
1596+
<li>grid items in the same column, along the grid's colum (block) axis, established by the <a>grid container</a>
1597+
<li>flex items in the same flex line, along the flex container's main axis, established by the <a>flex container</a>
15941598
</ul>
15951599

15961600
Note: Conceptually,

0 commit comments

Comments
 (0)