Problem with em values greater than 20.47em

Atom RSS

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.

Main navigation:




Search reports by browser:

Opera 7 shows a rough quantization error when a margin or a padding is expressed in em units and the value of the property is greater than (about) 20.47em. In these conditions the decimals are simply ignored. For example, all margins of 21em, 21.1em, … up to 21.9em are rendered exactly the same. This is not a simple rounding error.

Test page Workaround is not included
Reported by: Bruno Fassino.

Opera | Reported on 25 March 2005.

Comments

(Add your own)

Posted by Vesa Piittinen on 26 March 2005

1

Confirming this bug still exists in Opera 8 Beta 3

Posted by Phil Endecott on 26 March 2005

2

I've also noticed that Opera and Konqueror seem to round percentages to integers. Note to developers: just use floating point!

Posted by Bruno Fassino on 29 March 2005

3

Yes, both Opera 7 and Safari seem to truncate percentages values to integers (see http://www.brunildo.org/test/percmarg2.pl should display a black diagonal, not a staircase...)

Posted by Chriztian Steinmeier on 20 April 2005

4

Opera 8.0 (Build 7561) still "jaggy"...

Posted by Matias on 10 November 2005

5

Tested on 8.5 and the same problem still appeared.

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.

Yes