Skip to content

Commit e2f6b92

Browse files
committed
[css-align] Define table column baselines
1 parent 89bbc06 commit e2f6b92

2 files changed

Lines changed: 244 additions & 206 deletions

File tree

css-align/Overview.bs

100755100644
Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,8 @@ Determining the Baseline of a Box</h2>
897897

898898
The <dfn>first baseline</dfn> (and <dfn>last baseline</dfn>) of a box
899899
for a given axis
900-
is a set of baselines (alphabetic, central, etc.) belonging to a line box within the box.
900+
is a set of baselines (alphabetic, central, etc.)
901+
nominally associated with a line of text within the box.
901902
The <a>alignment baseline</a> is one of these,
902903
usually the dominant baseline of the <a>alignment container</a>.
903904
(Note, however, that boxes might not have a baseline in a particular axis.)
@@ -924,7 +925,8 @@ Determining the Baseline of a Box</h2>
924925
<dd>
925926
The first (last) inline-axis baseline of a table box is the baseline of its first (last) row.
926927
However, when finding the baseline of an inline-block,
927-
table boxes must be skipped.
928+
any baselines contributed by the table boxes must be skipped.
929+
(This quirk is a legacy behavior from [[CSS21]].)
928930

929931
The block-axis baseline of a table box is the baseline of its first (last) column.
930932

@@ -933,7 +935,7 @@ Determining the Baseline of a Box</h2>
933935

934936
<dt>''table-row''
935937
<dd>
936-
If any cells in the row participate in ''baseline'' (''last-baseline'') alignment,
938+
If any cells in the row participate in ''baseline'' (''last-baseline'') alignment along the row axis,
937939
the first (last) inline-axis baseline of the row is
938940
generated from their shared <a>alignment baseline</a> and the row's <a>first available font</a>,
939941
after alignment has been performed.
@@ -943,6 +945,19 @@ Determining the Baseline of a Box</h2>
943945

944946
A table row has no block-axis baseline.
945947

948+
<dt>''table-column''
949+
<dd>
950+
If any cells in the column participate in ''baseline'' (''last-baseline'') alignment
951+
along the column axis (by having a writing mode perpendicular to that of the table),
952+
the first (last) block-axis baseline of the column is
953+
generated from their shared <a>alignment baseline</a> and the column's <a>first available font</a>,
954+
after alignment has been performed.
955+
Otherwise, the the first (last) inline-axis baseline of the row
956+
is synthesized from the extreme content edges of the cells in the row.
957+
[[!CSS21]]
958+
959+
A table column has no inline-axis baseline.
960+
946961
<dt>''table-cell''
947962
<dd>
948963
The inline-axis baseline of a table cell is the baseline of the first (last) in-flow line box in the cell,

0 commit comments

Comments
 (0)