W3C home > Mailing lists > Public > www-style@w3.org > October 2013

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

From: Gérard Talbot <www-style@gtalbot.org>
Date: Sat, 19 Oct 2013 15:52:45 -0400
To: Alan Gresley <alan@css-class.com>
Cc: Glenn Adams <glenn@skynav.com>, W3C Style <www-style@w3.org>
Message-ID: <c6c0345fcee487dd743aa97065b0ac48@gtalbot.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:03 UTC