Skip to content

Commit 2465061

Browse files
committed
[css-inline-3] Split up normative and informative statements about the height of an inline box.
1 parent 9f8d7ac commit 2465061

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

css-inline-3/Overview.bs

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,6 +1345,7 @@ Inline Box Heights: the 'inline-sizing' property</h3>
13451345
is measured in relation to its contents.
13461346
It has no effect on the size or position of the box’s contents,
13471347
the line box, or any other content.
1348+
13481349
Values have the following meanings:
13491350

13501351
<dl dfn-for="inline-sizing" dfn-type=value>
@@ -1353,6 +1354,20 @@ Inline Box Heights: the 'inline-sizing' property</h3>
13531354
The <a>content area</a> of the <a>inline box</a>
13541355
is sized and position to fit (possibly hypothetical) text
13551356
from its [=first available font=].
1357+
This specification does not specify how.
1358+
A UA may, e.g., use the the maximum ascender and descender of the font.
1359+
(This would ensure that glyphs with parts above or below the em-box
1360+
still fall within the content area,
1361+
but leads to differently sized boxes for different fonts.)
1362+
1363+
Note: If more than one font is used
1364+
(which happen when glyphs are found in different fonts),
1365+
the [=logical height=] of the [=content area=] is not affected
1366+
by the glyphs from the fallback fonts,
1367+
and only depends on the [=first available font=].
1368+
However, these fallback glyphs can still affect the [=line box=] size
1369+
when 'line-height' is ''line-height/normal'';
1370+
see [[#inline-height]].
13561371

13571372
<dt><dfn>stretch</dfn>
13581373
<dd>
@@ -1365,25 +1380,11 @@ Inline Box Heights: the 'inline-sizing' property</h3>
13651380
coincide with the line box’s edges.
13661381
</dl>
13671382

1368-
The 'height' property does not apply to [=inline boxes=].
1369-
The height of the content area should be based on the font,
1370-
but this specification does not specify how.
1371-
A UA may, e.g., use the the maximum ascender and descender of the font.
1372-
(This would ensure that glyphs with parts above or below the em-box
1373-
still fall within the content area,
1374-
but leads to differently sized boxes for different fonts.)
1375-
1376-
The vertical padding, border and margin of an inline, non-replaced box
1377-
start at the top and bottom of the content area,
1378-
and has nothing to do with the 'line-height'.
1379-
But only the 'line-height' is used when calculating
1380-
the height of the line box.
1381-
1382-
If more than one font is used
1383-
(this could happen when glyphs are found in different fonts),
1384-
the height of the content area is not affected
1385-
by the glyphs from the fallback fonts,
1386-
and only depends on the first available font.
1383+
Note: The 'height' property does not apply to [=inline boxes=].
1384+
1385+
Note: The 'line-height' has no impact on the size of an [=inline box=],
1386+
it only [[#inline-height|affects its contribution]]
1387+
to the [=logical height=] of its [=line box=].
13871388

13881389
<h2 id="initial-letter-styling">
13891390
<!--<a name="Initial"></a>-->

0 commit comments

Comments
 (0)