Skip to content

Commit 8e05b22

Browse files
committed
[css-line-grid] fix baseline links
1 parent b5455fd commit 8e05b22

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

css-line-grid/Overview.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,14 @@ <h3 class="heading settled" data-level=3.1 id=line-snap><span class=secno>3.1 </
408408
<dd>The dominant baseline snaps with the matching baseline on the
409409
line grid applying to the element.
410410
<dt><dfn class=css data-dfn-for=line-snap data-dfn-type=value data-export="" id=valdef-line-snap-contain>contain<a class=self-link href=#valdef-line-snap-contain></a></dfn>
411-
<dd>Two baselines are used to align the line box: the line box is
412-
snapped so that its central baseline (halfway between the
413-
text-over and text-under baselines) is centered between
414-
one of the line grid’s text-over baselines and a subsequent
415-
(but not necessarily consecutive) text-under baseline.
411+
<dd>
412+
Two baselines are used to align the line box:
413+
the line box is snapped
414+
so that its <a href=http://dev.w3.org/csswg/css-inline/#central>central</a> baseline
415+
is centered between one
416+
of the line grid’s <a href=http://dev.w3.org/csswg/css-inline/#text-over-edge>text-over-edge</a> baselines
417+
and a subsequent (but not necessarily consecutive)
418+
<a href=http://dev.w3.org/csswg/css-inline/#text-under-edge>text-under-edge</a> baseline.
416419
</dl>
417420

418421
<p>In some cases lines of equal line height

css-line-grid/Overview.src.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,14 @@ <h3 id='line-snap'>
310310
<dd>The dominant baseline snaps with the matching baseline on the
311311
line grid applying to the element.
312312
<dt><dfn>contain</dfn>
313-
<dd>Two baselines are used to align the line box: the line box is
314-
snapped so that its central baseline (halfway between the
315-
text-over and text-under baselines) is centered between
316-
one of the line grid's text-over baselines and a subsequent
317-
(but not necessarily consecutive) text-under baseline.
313+
<dd>
314+
Two baselines are used to align the line box:
315+
the line box is snapped
316+
so that its <a href="http://dev.w3.org/csswg/css-inline/#central">central</a> baseline
317+
is centered between one
318+
of the line grid's <a href="http://dev.w3.org/csswg/css-inline/#text-over-edge">text-over-edge</a> baselines
319+
and a subsequent (but not necessarily consecutive)
320+
<a href="http://dev.w3.org/csswg/css-inline/#text-under-edge">text-under-edge</a> baseline.
318321
</dl>
319322

320323
In some cases lines of equal line height

0 commit comments

Comments
 (0)