W3C home > Mailing lists > Public > www-style@w3.org > September 2003

Re: [CSS] Lengths relative to the line height

From: Stanimir Stamenkov <stanio@yahoo.com>
Date: Sat, 27 Sep 2003 13:43:30 +0300
Message-ID: <3F7569D2.2060607@yahoo.com>
To: www-style@w3.org

staffan.mahlen@comhem.se wrote:

> --- Stanimir Stamenkov <stanio@yahoo.com> wrote:
> 
>> Would it be good if there's a unit ... to specify lengths 
>> relative to the parent element's line height?
>> 
> 
> [...]
> 
> Is the computed end result of the unit only dependant on the line-
> height property or are you considering values relative to the actual 
> calculated line-box height? In the former case you should probably 
> use explict declarations instead since you may need to consider 
> possible replaced element and in the second i think the potential for 
> circular dependencies etc is far to large. How would you know how 
> many lines you needed in the float example? Unless you use nowrap or 
> something you couldn't really know since that is UA and font 
> dependant i think.
> 

O.k. May be I have to think more about it. Generally, I've though it 
is interesting because the text content is laid out in lines and the 
line height used for specifying lengths relative to it is just 
useful as specifying lengths relative to the font size.

-- 
Stanimir
Received on Saturday, 27 September 2003 06:44:11 GMT

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