@@ -2145,7 +2145,8 @@ Determining the Baselines of a Box</h3>
21452145 <dt> tables
21462146 <dd>
21472147 The first/last [=baseline set=] of a table box
2148- is the first/last [=baseline set=] of its first/last row.
2148+ is the first/last [=baseline set=] of its first/last row
2149+ (after any reordering of [=table row groups=] ).
21492150
21502151 When finding the first/last baseline set of an inline-block,
21512152 any baselines contributed by table boxes must be skipped.
@@ -2166,23 +2167,30 @@ Determining the Baselines of a Box</h3>
21662167 last [=baseline alignment=] along the table’s [=inline axis=] ,
21672168 [=generate=] from <em> that</em> [=alignment baseline=] .
21682169
2170+ <!-- Other layout models have this step, but for compat reasons tables can't.
21692171 3. Otherwise, if any cells in the row have an [=inline-axis=] [=baseline set=] at all,
21702172 take the [=baseline set=] from the cell
21712173 with the <em> highest</em> ([=block-start=] –most) baseline
21722174 corresponding to the table's [=alignment baseline=] .
2175+ -->
21732176
2174- 4. Otherwise, [=synthesize=] from the lowest and highest [=content edges=]
2177+ 4. Otherwise, if the row is not empty,
2178+ [=synthesize=] from the lowest and highest [=content edges=]
21752179 of all the cells in the row.
2176- (See [[!CSS2]] .)
2180+ See [[css2#height-layout]] .
2181+
2182+ 5. Otherwise,
2183+ use the [=block-start=] [=content edge=] of the [=table row box=] itself
2184+ as the [=alignment baseline=] .
21772185
21782186 For this purpose,
21792187 any [=table cell=] that spans multiple rows
21802188 is ignored if it’s span does not start in this row;
21812189 except that for step 2,
21822190 it's ignored if its span does not <em> end</em> in this row.
21832191
2184- Last baselines are analogous
2185- (with “first”/“last” and “start”/“end” inverted).
2192+ <em> Last baselines are analogous
2193+ (with “first”/“last” and “start”/“end” inverted).</em>
21862194
21872195 Spanning cells participate only in the first/last row that they span
21882196 for the purpose of ''first baseline'' /''last baseline'' .
0 commit comments