@@ -1590,6 +1590,19 @@ Determining the Baselines of a Box</h2>
1590
1590
table cells <a>synthesize</a> from their content edges [[CSS2]] ,
1591
1591
and grid and flex items <a>synthesize</a> from their border edges [[CSS-GRID-1]] [[CSS-FLEXBOX-1]] .
1592
1592
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
+
1593
1606
Issue: Maybe these things are wrong?
1594
1607
CSS 2.1 is really weird about baseline alignment.
1595
1608
@@ -1652,16 +1665,6 @@ Baseline Alignment Grouping</h3>
1652
1665
* the same <a>block flow direction</a> and <a>baseline alignment preference</a>
1653
1666
* opposite <a>block flow direction</a> and opposite <a>baseline alignment preference</a>
1654
1667
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
-
1665
1668
<h3 id='align-by-baseline'>
1666
1669
Aligning Boxes by Baseline</h3>
1667
1670
0 commit comments