W3C home > Mailing lists > Public > public-css-testsuite@w3.org > February 2011

[RC5] c526-font-sz-002 invalid

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Wed, 9 Feb 2011 11:08:12 -0800
Message-ID: <f7c28248631cd12e750625f57ebc0402.squirrel@cp3.shieldhost.com>
To: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
http://test.csswg.org/suites/css2.1/20110111/html4/c526-font-sz-002.htm

http://test.csswg.org/suites/css2.1/20110111/xhtml1/c526-font-sz-002.xht

http://test.csswg.org/source/approved/css2.1/src/css1/c526-font-sz-002.htm

http://test.csswg.org/source/approved/css2.1/src/css1/c526-font-sz-002.xht

Several browsers (Firefox 3.6.13, Firefox 4.0b6, Konqueror 4.6) will
fail this testcase because 1ex is first computed and rounded before
multiplying by 2.5


<div class="g"> is 33px wide, not 32px because .g {font-size: 2.5ex;}
(16 mult 0.8 == 12.8 which is then rounded up to 13) mult 2.5 == 32.5
which is then rounded up to 33px. The testcase expects instead: (2.5
mult 0.8) mult 16 == 32px.

Solution is to set the parent wrapping <div class="ahem"> font-size to
20px or 30px.

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

CSS 2.1 test suite (RC5; January 11th 2011):
http://test.csswg.org/suites/css2.1/20110111/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Wednesday, 9 February 2011 19:08:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 February 2011 19:09:00 GMT