[RC5] c548-ln-ht-002 invalid; invalid flag missing

http://test.csswg.org/suites/css2.1/20110111/html4/c548-ln-ht-002.htm

http://test.csswg.org/suites/css2.1/20110111/xhtml1/c548-ln-ht-002.xht

http://test.csswg.org/source/approved/css2.1/src/css1/c548-ln-ht-002.htm

http://test.csswg.org/source/approved/css2.1/src/css1/c548-ln-ht-002.xht

Several browsers (Firefox 3.6.13, Firefox 4.0b6, Konqueror 4.6) will
fail this testcase because 1ex is first computed and then rounded and
because font-size of element is not a multiple of 5

.seven {line-height: 2.5ex;} when font-size is 12px. 12 mult 0.8 == 9.6
which is rounded up to 10px by Firefox 3.6.13 and Konqueror 4.6. 10px
mult by 2.5 == 25px which is what the Firefox's DOM inspector and
Konqueror's DOM treeviewer reveals as computed line-height. The testcase
instead expects instead (2.5 mult 0.8) mult 12 == 24px.

Solution is to use font-size: 20px or 30px.

-------------

That testcase should also declare the invalid flag since negative
line-height value are illegal.
http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height


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:16:30 UTC