Sent by Philippe Wittenbergh on 22 December 2002 11:11
On Sunday, December 22, 2002, at 07:26 PM, Martijn ten Napel wrote:
> Illustration:
> correct:
> http://www.xs4all.nl/~mosm/Blogtest/mozilla_round_error_using_ems_20.html
> incorrect:
> http://www.xs4all.nl/~mosm/Blogtest/mozilla_round_error_using_ems_19.html
>
> 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:
<http://users.rraz.net/mc_on_the_rocks/testpage/mozshift.html>,
and for a possible fix:
<http://www.l-c-n.com/lab/moz_spacing2.html>
(If you use line-height:normal for your two boxes, they will work
correctly)
Philippe
== | == | == | == | == | == | == | == | == | == | == | ==
Philippe Wittenbergh
code | design | web projects : <http://www.l-c-n.com/>
online image gallery : <http://www.l-c-n.com/phiw/>