Re: line-height: normal and multiple descendant font sizes

Le 2013-10-19 12:36, Alan Gresley a écrit :
> If line-height has a value other than
> normal like <number> | <length> | <percentage>, then the line box will
> be the height of the declared line-height value.

It usually is the case but not always like that. If the line box has a 
tall image, then line box height will increase beyond the height of the 
declared line-height value.

If an(some) inline box(es) is(are) vertically-aligned inside the line 
box, then the line box height can increase beyond the height of the 
declared line-height value.

"
A line box is always tall enough for all of the boxes it contains. 
However, it may be taller than the tallest box it contains (if, for 
example, boxes are aligned so that baselines line up).
"
§9.4.2 Inline formatting contexts
http://www.w3.org/TR/CSS21/visuren.html#inline-formatting

Gérard

Received on Saturday, 19 October 2013 19:53:17 UTC