@@ -1590,6 +1590,19 @@ Determining the Baselines of a Box</h2>
15901590 table cells <a>synthesize</a> from their content edges [[CSS2]] ,
15911591 and grid and flex items <a>synthesize</a> from their border edges [[CSS-GRID-1]] [[CSS-FLEXBOX-1]] .
15921592
1593+ In general, the <a>writing mode</a> of the box, shape, or other object being aligned
1594+ is used to determine the <a>line-under</a> and <a>line-over</a> edges for synthesis.
1595+ However, when that <a>writing mode</a> ’s
1596+ <a>block flow direction</a> is parallel
1597+ to the axis of the <a>alignment context</a> ,
1598+ an axis-compatible <a>writing mode</a> must be assumed:
1599+ * If the box establishing the <a>alignment context</a>
1600+ has a <a>block flow direction</a> that is orthogonal to the axis of the <a>alignment context</a> ,
1601+ use its <a>writing mode</a> .
1602+ * Otherwise, assume either ''horizontal-tb'' or ''vertical-lr'' 'writing-mode' ,
1603+ whichever is orthogonal to the box’s own 'writing-mode' .
1604+ <!-- This pairing is chosen because the most likely case for this situation is CJK. -->
1605+
15931606 Issue: Maybe these things are wrong?
15941607 CSS 2.1 is really weird about baseline alignment.
15951608
@@ -1652,16 +1665,6 @@ Baseline Alignment Grouping</h3>
16521665 * the same <a>block flow direction</a> and <a>baseline alignment preference</a>
16531666 * opposite <a>block flow direction</a> and opposite <a>baseline alignment preference</a>
16541667
1655- For the purpose of synthesizing baselines of boxes
1656- whose <a>block flow direction</a> is parallel
1657- to the axis of the <a>alignment context</a> :
1658- * If the box establishing the <a>alignment context</a>
1659- has a <a>block flow direction</a> that is orthogonal to the axis of the <a>alignment context</a> ,
1660- use its <a>writing mode</a> .
1661- * Otherwise, assume either ''horizontal-tb'' or ''vertical-lr'' 'writing-mode' ,
1662- whichever is orthogonal to the box’s own 'writing-mode' .
1663- <!-- This pairing is chosen because the most likely case for this situation is CJK. -->
1664-
16651668<h3 id='align-by-baseline'>
16661669Aligning Boxes by Baseline</h3>
16671670
0 commit comments