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

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

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Wed, 9 Feb 2011 11:15:55 -0800
Message-ID: <2dffd5f532222f23f16cd46e330d6f5c.squirrel@cp3.shieldhost.com>
To: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>




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.

Gérard Talbot
Contributions to the CSS 2.1 test suite:

CSS 2.1 test suite (RC5; January 11th 2011):

CSS 2.1 test suite contributors:
Received on Wednesday, 9 February 2011 19:16:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:17 UTC