Skip to content

Commit 71aaa7d

Browse files
committed
[css2] Editorial tweaks about line-height
Final tweaks about line-height. Closes the w3c#1796 series.
1 parent 0add755 commit 71aaa7d

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

css2/visudet.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,21 +1415,22 @@ <h3>10.8.1 <a name="leading">Leading and half-leading</a></h3>
14151415
href="#strut">strut</a> (an invisible glyph of zero width) with the
14161416
<var>A</var> and <var>D</var> of the element's first available font.
14171417

1418-
<p>When the value of the <a href="" class="noxref"><span class="propinst-line-heigh">'line-height'</span></a> property
1418+
<p id="inline-box-height">When the value of the <a href="" class="noxref"><span class="propinst-line-heigh">'line-height'</span></a> property
14191419
is something other than 'normal',
14201420
determine the leading <var>L</var> to add,
14211421
where <var>L</var> = <a href="visudet.html#propdef-line-height" class="noxref"><span
14221422
class="propinst-line-height">'line-height'</span></a> - <var>AD</var> of the first available font.
1423-
Half the leading is added above <var>A</var> and the other half below
1424-
<var>D</var>, giving a total height above
1423+
Half the leading is added above <var>A</var> of the first available font, and the other half below
1424+
<var>D</var> of the first available font, giving a total height above
14251425
the baseline of <var>A'</var> = <var>A</var> + <var>L</var>/2 and a
14261426
total depth of <var>D'</var> = <var>D</var> + <var>L</var>/2.
14271427
Glyphs from fonts other than the first available font
1428-
do not impact the height or baseline of the inline box.
1428+
do not impact the height or baseline of the inline box
1429+
for <a href="" class="noxref"><span class="propinst-line-heigh">'line-height'</span></a> values other than 'normal'.
14291430

14301431
<p class=note><strong>Note.</strong> <var>L</var> may be negative.
14311432

1432-
<p id="inline-box-height">Boxes of child elements do not influence this height.
1433+
<p>Boxes of child elements do not influence this height.
14331434

14341435
<p>When the value of the <a href="" class="noxref"><span class="propinst-line-heigh">'line-height'</span></a> property
14351436
is 'normal',

css2/visudet.src

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,21 +1319,22 @@ it is considered to contain a <a
13191319
href="#strut">strut</a> (an invisible glyph of zero width) with the
13201320
<var>A</var> and <var>D</var> of the element's first available font.
13211321

1322-
<p>When the value of the <span class="propinst-line-heigh">'line-height'</span> property
1322+
<p id="inline-box-height">When the value of the <span class="propinst-line-heigh">'line-height'</span> property
13231323
is something other than 'normal',
13241324
determine the leading <var>L</var> to add,
13251325
where <var>L</var> = <span
13261326
class="propinst-line-height">'line-height'</span> - <var>AD</var> of the first available font.
1327-
Half the leading is added above <var>A</var> and the other half below
1328-
<var>D</var>, giving a total height above
1327+
Half the leading is added above <var>A</var> of the first available font, and the other half below
1328+
<var>D</var> of the first available font, giving a total height above
13291329
the baseline of <var>A'</var> = <var>A</var> + <var>L</var>/2 and a
13301330
total depth of <var>D'</var> = <var>D</var> + <var>L</var>/2.
13311331
Glyphs from fonts other than the first available font
1332-
do not impact the height or baseline of the inline box.
1332+
do not impact the height or baseline of the inline box
1333+
for <span class="propinst-line-heigh">'line-height'</span> values other than 'normal'.
13331334

13341335
<p class=note><strong>Note.</strong> <var>L</var> may be negative.
13351336

1336-
<p id="inline-box-height">Boxes of child elements do not influence this height.
1337+
<p>Boxes of child elements do not influence this height.
13371338

13381339
<p>When the value of the <span class="propinst-line-heigh">'line-height'</span> property
13391340
is 'normal',

0 commit comments

Comments
 (0)