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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 11 Apr 2004 16:58:41 -0500
Message-ID: <4079BF91.30603@mit.edu>
To: David Woolley <david@djwhome.demon.co.uk>
Cc: www-style@w3.org

David Woolley wrote:
>>This would be because Mozilla, Opera, and Safari are following
>> the W3C spec.
> 
> If that is the case, the specification is unreasonable, as, in my view, 
> the only sensible behaviour is for the ratio, not the absolute 
> value to inherit.

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

<body style="font-size: 10px; line-height: 10px">
   <div style="font-size: 20px" />
</body>

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

-Boris
Received on Sunday, 11 April 2004 17:58:46 GMT

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