Skip to content

Commit 585370d

Browse files
committed
[css-inline-3] Some cleanup of alignment-baseline definition
1 parent 47671ca commit 585370d

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

css-inline-3/Overview.bs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ Baseline Metrics</h3>
293293
see [[#baseline-tables]] and [[#baseline-synthesis]].
294294

295295
<h4 id="baseline-tables">
296-
Deriving Baselines</h4>
296+
Baselines of Glyphs and Boxes</h4>
297297

298298
Each font, glyph, and [=inline-level box=]
299299
is assumed to have a [=baseline=] coordinate
@@ -304,9 +304,9 @@ Deriving Baselines</h4>
304304
For an [=inline box=], it derives from its [=first available font=]
305305
regardless of whether the box actually contains any glyphs from that font.
306306
For [=atomic inlines=], it is the box’s alignment [=baseline set=]
307-
(as chosen by 'baseline-source')
308-
if any;
309-
or else is synthesized from the box’s dimensions,
307+
(as chosen by 'baseline-source');
308+
if the box has no [=baseline set=]
309+
then one is [=synthesize baseline|synthesized=] from its [=margin box=],
310310
see [[#baseline-synthesis-replaced]].
311311

312312
Each font is assumed to have its own <dfn>baseline table</dfn>
@@ -535,12 +535,14 @@ Alignment Baseline Type: the 'alignment-baseline' longhand</h4>
535535
Animation type: discrete
536536
</pre>
537537

538-
<p>Specifies what point of an inline-level box is aligned to what point in the parent.
539-
Also selects the <a>alignment baseline</a> of boxes aligned with 'align-self'/'justify-self'.
538+
This property specifies the box’s <dfn export>alignment baseline</dfn>:
539+
the [=baseline=] used to align the box
540+
prior to applying its [=baseline shift=].
540541

541-
ISSUE: Clean up this prose to correctly handle alignment contexts other than inline formatting contexts.
542-
543-
Values are defined below:
542+
The <dfn>alignment baseline values</dfn>,
543+
which specify which [=baseline=] of the box is aligned
544+
to the corresponding [=baseline=] of its [=alignment context=]
545+
when performing [=baseline alignment=], are defined below:
544546

545547
<dl dfn-for=alignment-baseline dfn-type=value>
546548
<dt><dfn>baseline</dfn>
@@ -580,13 +582,11 @@ Alignment Baseline Type: the 'alignment-baseline' longhand</h4>
580582
Match the box’s [=text-over baseline=] to that of its parent.
581583
</dl>
582584

583-
For the purposes of transverse alignment within a [=line box=],
584-
an [=atomic inline=] that has no [=baseline sets=]
585-
uses baselines [=synthesize baseline|synthesized=]
586-
from its [=margin box=].
587-
588-
For the following definitions, the <a>alignment subtree</a>
589-
is as defined in [[!CSS2]].
585+
The <dfn>line-relative alignment values</dfn>,
586+
which reference the [=line-over=] and [=line-under=] edges
587+
of the box’s [=aligned subtree=] [[!CSS2]]
588+
and align with respect to the corresponding edges of the [=line box=] itself,
589+
are defined below:
590590

591591
<dl dfn-for=alignment-baseline dfn-type=value>
592592
<dt><dfn>top</dfn>

0 commit comments

Comments
 (0)