Re: [css-d] rounding error when using ems/points in Mozilla/Geckoengine?
Sent by Philippe Wittenbergh on 22 December 2002 11:11
On Sunday, December 22, 2002, at 07:26 PM, Martijn ten Napel wrote:
> Please, use 'view source' to compare the stylesheet declarations.
> When using points you encounter the same problem, when using pixels to
> determine the height of the box the problem is not present.
> When resizing the text size (using ctrl + '+' or ctrl + '-') you see
> that gaps or overlaps sometimes occur in both examples.
> It seems it is a rounding error of the Mozilla engine, because IE6 and
> IE5 on Mac interpret the code correctly and Mozilla consistently shows
> the same error on both Win98 and Mac OSX (Mozilla 1.2) when using when
> setting heights using relative sizes.
> Any idea of this is a rendering problem of Mozilla (and if so, if it is
> a known problem)?
It's a bug in Mozilla based browsers: It is very much related to the use
of a relative unit for line-height:
and for a possible fix:
(If you use line-height:normal for your two boxes, they will work
== | == | == | == | == | == | == | == | == | == | == | ==
code | design | web projects : <http://www.l-c-n.com/>
online image gallery : <http://www.l-c-n.com/phiw/>