(acid1 test) [RC6] c5526c-display-000 failed by many browsers (fractional pixel issue)

Hello,

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/c5526c-display-000.htm

[RC6]
http://test.csswg.org/suites/css2.1/20110323/html4/c5526c-display-000.htm

While trying to create reftests, I gave a shot to c5526c-display-000 and
then realized that almost all browsers fail this test... according to
the test author's original expectations as given in the /* comments */

line 33   width: 10.638%;
/* refers to parent element's width of 47em. = 5em or 50px */

0.10638 mult by 47 mult by 10 == 49.9986px

Firefox 9.0.1 width's computed value : 49.9833px; used width is 50px though

Opera 11.61 width's computed value : 47px (!); used width is 47px
Opera 11.61 seems to be truncating the fractional part of the specified
value. The only factor that can start with 47 and end with 4.7 is 0.10
or 10%.

Chrome 16.0.912.77 : 49px; used width is 49px

Konqueror 4.8.0 : 49px; used width is 49px


line 69   width: 41.17%; /* = 14em */

Firefox 9.0.1 width's computed value : 139.967px and not 140px; used
width is 140px though

Opera 11.61 width's computed value : 139px (!); used width is 139px

Chrome 16.0.912.77 : 139px; used width is 139px

Konqueror 4.8.0 : 139px; used width is 139px


Gérard
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 Test suite RC6, March 23rd 2011:
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

CSS 2.1 test suite harness:
http://test.csswg.org/harness/

Contributing to to CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html

Received on Thursday, 2 February 2012 23:55:10 UTC