Skip to content

Commit d8f466a

Browse files
committed
[css2] Fix line-height:normal with only fallback fonts
Closes w3c#1800
1 parent b55a734 commit d8f466a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

css2/visudet.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,9 @@ <h3>10.8.1 <a name="leading">Leading and half-leading</a></h3>
14151415
each glyph, determine the <var>A</var> and <var>D</var>. Note that
14161416
glyphs in a single element may come from different fonts and thus need
14171417
not all have the same <var>A</var> and <var>D</var>. If the inline box
1418-
contains no glyphs at all, it is considered to contain a <a
1418+
contains no glyphs at all,
1419+
or if it contains only glyphs from fallback fonts,
1420+
it is considered to contain a <a
14191421
href="#strut">strut</a> (an invisible glyph of zero width) with the
14201422
<var>A</var> and <var>D</var> of the element's first available font.
14211423

css2/visudet.src

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,9 @@ each other by their relevant baselines. Then, for
13191319
each glyph, determine the <var>A</var> and <var>D</var>. Note that
13201320
glyphs in a single element may come from different fonts and thus need
13211321
not all have the same <var>A</var> and <var>D</var>. If the inline box
1322-
contains no glyphs at all, it is considered to contain a <a
1322+
contains no glyphs at all,
1323+
or if it contains only glyphs from fallback fonts,
1324+
it is considered to contain a <a
13231325
href="#strut">strut</a> (an invisible glyph of zero width) with the
13241326
<var>A</var> and <var>D</var> of the element's first available font.
13251327

0 commit comments

Comments
 (0)