Skip to content

Commit 3bd261f

Browse files
committed
[css-align-3] Specify that if a box has no alignment baseline, one is synthesized according to the rules of its formatting context. #4675
1 parent 732b227 commit 3bd261f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

css-align-3/Overview.bs

+9-2
Original file line numberDiff line numberDiff line change
@@ -2092,11 +2092,14 @@ Determining the Baselines of a Box</h2>
20922092

20932093
Each box,
20942094
for a given axis,
2095-
has a <dfn export lt="first baseline set|first baselines">first baseline set</dfn>
2095+
has potentially
2096+
a <dfn export lt="first baseline set|first baselines">first baseline set</dfn>
20962097
(and <dfn export lt="last baseline set|last baselines">last baseline set</dfn>)
20972098
that nominally corresponds to the <a>baseline set</a> of
20982099
the first/last line of text within the box.
2099-
The <dfn export>alignment baseline</dfn> is one of these,
2100+
The <dfn export>alignment baseline</dfn>,
2101+
which is the baseline used to align the box in its [=alignment context=],
2102+
is one of the baselines in its [=baseline set=],
21002103
usually the dominant baseline associated with the <a>shared alignment context</a>.
21012104
(See the 'dominant-baseline' and 'alignment-baseline' properties in [[CSS-INLINE-3]].)
21022105

@@ -2170,6 +2173,10 @@ Determining the Baselines of a Box</h2>
21702173
use the baseline table from the font settings and <a>first available font</a> of that box,
21712174
and align that baseline set to the given single baseline.
21722175

2176+
If a box that [=participates in baseline alignment=]
2177+
has no [=baseline set=],
2178+
then its [=alignment baseline=] is [=synthesized=]
2179+
according to the rules of the [=formatting context=] in which it participates.
21732180
To <dfn lt="synthesize baseline|synthesized baseline" local-lt=synthesize|synthesized export>synthesize baselines</dfn> from a rectangle (or two parallel lines),
21742181
synthesize the alphabetic baseline from the <a>line-under</a> line,
21752182
and the central baseline by averaging the positions of the two edges or lines.

0 commit comments

Comments
 (0)