Skip to content

Commit 4fd2698

Browse files
committed
[css2] Tighten the definition of the content area height for inlines
The previous prose allowed for variations not used in actual implementations. Since there is interoperability, the spec should align. Closes w3c#1804
1 parent d8f466a commit 4fd2698

2 files changed

Lines changed: 12 additions & 24 deletions

File tree

css2/visudet.html

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -971,12 +971,10 @@ <h3>10.6.1 <a name="inline-non-replaced">Inline, non-replaced elements</a></h3>
971971
<p>The <a href="visudet.html#propdef-height" class="noxref"><span class="propinst-height">'height'</span></a> property does not
972972
apply. The height of the content area should be based on the font, but
973973
this specification does not specify how. A UA may, e.g., use the
974-
em-box or the maximum ascender and descender of the font. (The latter
974+
the maximum ascender and descender of the font. (This
975975
would ensure that glyphs with parts above or below the em-box still
976976
fall within the content area, but leads to differently sized boxes for
977-
different fonts; the former would ensure authors can control
978-
background styling relative to the 'line-height', but leads to glyphs
979-
painting outside their content area.)
977+
different fonts.)
980978
</p>
981979
<p class=note>Note: level 3 of CSS will probably include a property to
982980
select which measure of the font is used for the content height.
@@ -989,14 +987,10 @@ <h3>10.6.1 <a name="inline-non-replaced">Inline, non-replaced elements</a></h3>
989987
the height of the line box.
990988
</p>
991989
<p><a name="multi-font-inline-height"></a> If more than one font is
992-
used (this could happen when glyphs are found in different fonts), the
993-
height of the content area is not defined by this specification.
994-
However, we suggest that the height is chosen such that the content
995-
area is just high enough for either (1) the em-boxes, or (2) the
996-
maximum ascenders and descenders, of <em>all</em> the fonts in the
997-
element. Note that this may be larger than any of the font sizes
998-
involved, depending on the baseline alignment of the fonts.
999-
</p>
990+
used (this could happen when glyphs are found in different fonts),
991+
the height of the content area is not affected
992+
by the glyphs from the fallback fonts,
993+
and only depends on the first available font.</p>
1000994

1001995
<h3>10.6.2 <a name="inline-replaced-height">Inline replaced elements</a>,
1002996
block-level replaced elements in normal flow, 'inline-block' replaced

css2/visudet.src

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -896,12 +896,10 @@ href="#min-max-heights">Minimum and maximum heights</a> below.</em>
896896
<p>The <span class="propinst-height">'height'</span> property does not
897897
apply. The height of the content area should be based on the font, but
898898
this specification does not specify how. A UA may, e.g., use the
899-
em-box or the maximum ascender and descender of the font. (The latter
899+
the maximum ascender and descender of the font. (This
900900
would ensure that glyphs with parts above or below the em-box still
901901
fall within the content area, but leads to differently sized boxes for
902-
different fonts; the former would ensure authors can control
903-
background styling relative to the 'line-height', but leads to glyphs
904-
painting outside their content area.)
902+
different fonts.)
905903
</p>
906904
<p class=note>Note: level 3 of CSS will probably include a property to
907905
select which measure of the font is used for the content height.
@@ -914,14 +912,10 @@ class="propinst-line-height">'line-height'</span> is used when calculating
914912
the height of the line box.
915913
</p>
916914
<p><a name="multi-font-inline-height"></a> If more than one font is
917-
used (this could happen when glyphs are found in different fonts), the
918-
height of the content area is not defined by this specification.
919-
However, we suggest that the height is chosen such that the content
920-
area is just high enough for either (1) the em-boxes, or (2) the
921-
maximum ascenders and descenders, of <em>all</em> the fonts in the
922-
element. Note that this may be larger than any of the font sizes
923-
involved, depending on the baseline alignment of the fonts.
924-
</p>
915+
used (this could happen when glyphs are found in different fonts),
916+
the height of the content area is not affected
917+
by the glyphs from the fallback fonts,
918+
and only depends on the first available font.</p>
925919

926920
<h3><a name="inline-replaced-height">Inline replaced elements</a>,
927921
block-level replaced elements in normal flow, 'inline-block' replaced

0 commit comments

Comments
 (0)