Problem with em values greater than 20.47em

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.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.

Search reports by browser:

Atom RSS


(Add your own)

1 Posted by Vesa Piittinen on 26 March 2005 | Permalink

Confirming this bug still exists in Opera 8 Beta 3

2 Posted by Phil Endecott on 26 March 2005 | Permalink

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

3 Posted by Bruno Fassino on 29 March 2005 | Permalink

Yes, both Opera 7 and Safari seem to truncate percentages values to integers (see should display a black diagonal, not a staircase...)

4 Posted by Chriztian Steinmeier on 20 April 2005 | Permalink

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

5 Posted by Matias on 10 November 2005 | Permalink

Tested on 8.5 and the same problem still appeared.