Re: line-height limitations

-----Original Message----- 
From: David Woolley
Sent: Thursday, March 17, 2011 1:01 AM
To: www-style CSS
Subject: Re: line-height limitations

>Andrew Fedoniouk wrote:
>>       p { font-size:12pt;
>>           line-height:12pt;
>
>> If “yes” then why it cannot be used?
>
>Setting line-height to anything but a pure number tends to cause 
>consecutive lines to overlap when consumers disable font sizes and cap the 
>minimum size.  This is often necessary because authors choose excessively 
>small sizes.

While this is true in general it is not applicable for the particular
case/problem of iBook application. Neither user nor anyone else except
of developers of the app are exposed to the font size settings so
developer can use any fixed line-height value.

If to speak in general then adding simple 'parent' value would
solve this problem and the one mentioned by Brad with sub/sup.

line-height:parent; - use *computed* value of corresponding property
of the parent element.

Actually 'parent' and more generic variant: 'parent(prop-name)' make
sense in other cases two I think.

-- 
Andrew Fedoniouk

http://terrainformatica.com 

Received on Thursday, 17 March 2011 15:55:09 UTC