Previous Message
Next Message

roundoff bug in CSS

Sent by Felix Miata on 14 July 2004 14:02


Lukasz Grabun wrote:
 
>  line-height:1.3em;
 
> Pivotal lines are font-size: 0.85em and line-height: 1.3em. After a
> number of "repetitions" of <li> tags a 1px break occurs. Here's
> screenshot:
 
> http://www.dwarfscorner.com/images/dwarfscorner1.png.
 
> To fix it, I changed 1.3 to 2. An unfair compromise, if you ask me. Is
> it me or a browser?

Did you try 1.3 rather than 1.3em? The only practical reason line-height
can be specified as anything other than <number> is to give page
designers grief. This may not be apparent from reading the spec, but
that's the functional result. Just think of 1.3 as being equivalent to
1.3em, except without inexplicable inheritance and rounding behavior
that all other methods to specify line-height exhibit.
http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height
-- 
"If you are wise, your wisdom will reward you;"        Proverbs 9:12 NIV

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://members.ij.net/mrmazda/auth/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: