W3C home > Mailing lists > Public > www-style@w3.org > February 2002

line-height calculation

From: Thomas Schilling <snuffeler@gmx.net>
Date: Wed, 20 Feb 2002 13:33:11 -0500 (EST)
Message-ID: <000701c1ba3c$d5dcb560$0300a8c0@dommili>
To: <www-style@w3.org>
i assume this is an old issue but, nevertheless, i want
to ask for it (again).

why was it chosen to calculate the line-height property
on the _largest_ font size in a line?

Quote from css2:
"When an element contains text that is rendered in
more than one font, user agents should determine
the 'line-height' value according to the largest font size."

This causes (or can cause) text with inline-formulae to
change the line height. E.g. when you try to use the
collapsed summation symbol (i found i in Donald Knuth's
"The Art of Computer Programming" which is written in

Maybe one of you can explain me. I have to admit that
I couldn't test to write inline-formulae since i found no
browser supporting mathML but it didn't work with different
font sizes. e.g: A { line-height:1.4; font-size:10pt; }
A B { line-height:1.167; font-size:12pt; }
maybe it's due to my UA (MSIE) but if i understand the
css standard right it isn't

Received on Thursday, 21 February 2002 05:24:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:00 UTC