W3C home > Mailing lists > Public > www-style@w3.org > April 2004

Re: line-height: <length> should be revoked

From: David Woolley <david@djwhome.demon.co.uk>
Date: Sun, 11 Apr 2004 23:32:07 +0100 (BST)
Message-Id: <200404112232.i3BMW7u06439@djwhome.demon.co.uk>
To: www-style@w3.org

> That's exactly what happens when you set the line-height as a ratio (eg 
> "line-height: 1.5").  But if the page has:

That's good, but the first respondent seemed to be saying that 
line-height inherited as a size resolved to absolute units, because
the example was 1.2em and 20px resulting in 14.4px instead of 
24px and he seemed to be saying that that was what the specification
required.  I wrote "if this is the case" because it didn't seem right.
Specifically, the thread root article said that this situation caused
lines to overlap, whereas inheriting as 1.2em would cause a reasonable
spacing, and the respondent was saying that the overlap was the result
of correct implementation.

> do you really expect the line-height of the div to be 20px?

Of course not.  I don't expect good designers to ever use pixel line-heights,
though, although I expect real life web pages (and proxy and browser error
pages) to make use of them, based on practical experience of pages that
won't tolerate having author sizes disabled.  I would like any browser
option that disables author font sizes to also disable author line-heights.
Received on Sunday, 11 April 2004 18:32:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:28 GMT