W3C home > Mailing lists > Public > www-style@w3.org > March 2011

Re: line-height limitations

From: Andrew Fedoniouk <andrew.fedoniouk@live.com>
Date: Thu, 17 Mar 2011 08:54:33 -0700
Message-ID: <BLU159-ds14A8118FABDD9DB2B4E1FEF8B10@phx.gbl>
To: "David Woolley" <forums@david-woolley.me.uk>, "www-style CSS" <www-style@w3.org>
-----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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:38 GMT