Skip to content

Commit fd6cc1a

Browse files
committed
[css-inline-3] Copy over CSS2.1 10.6.1
1 parent d9106f9 commit fd6cc1a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

css-inline-3/Overview.bs

+30
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,36 @@ Inline Box Heights: the 'inline-sizing' property</h3>
686686
rename it to match,
687687
and possibly introduce any other values that may seem necessary.
688688

689+
<p>The <span class="propinst-height">'height'</span> property does not
690+
apply. The height of the content area should be based on the font, but
691+
this specification does not specify how. A UA may, e.g., use the
692+
em-box or the maximum ascender and descender of the font. (The latter
693+
would ensure that glyphs with parts above or below the em-box still
694+
fall within the content area, but leads to differently sized boxes for
695+
different fonts; the former would ensure authors can control
696+
background styling relative to the 'line-height', but leads to glyphs
697+
painting outside their content area.)
698+
</p>
699+
<p class=note>Note: level 3 of CSS will probably include a property to
700+
select which measure of the font is used for the content height.
701+
</p>
702+
<p>The vertical padding, border and margin of an inline, non-replaced
703+
box start at the top and bottom of the content area, and has nothing
704+
to do with the <span
705+
class="propinst-line-height">'line-height'</span>. But only the <span
706+
class="propinst-line-height">'line-height'</span> is used when calculating
707+
the height of the line box.
708+
</p>
709+
<p><a name="multi-font-inline-height"></a> If more than one font is
710+
used (this could happen when glyphs are found in different fonts), the
711+
height of the content area is not defined by this specification.
712+
However, we suggest that the height is chosen such that the content
713+
area is just high enough for either (1) the em-boxes, or (2) the
714+
maximum ascenders and descenders, of <em>all</em> the fonts in the
715+
element. Note that this may be larger than any of the font sizes
716+
involved, depending on the baseline alignment of the fonts.
717+
</p>
718+
689719
<h2 id="initial-letter-styling">
690720
<!--<a name="Initial"></a>-->
691721
Initial Letters</h2>

0 commit comments

Comments
 (0)