W3C home > Mailing lists > Public > public-css-testsuite@w3.org > May 2010

Microsoft's Chapter_6/html-attribute-010.htm needs to be adjusted and corrected

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Tue, 11 May 2010 19:48:17 -0700
Message-ID: <c03774d096df61c3d87c5a0299adf1ef.squirrel@cp3.shieldhost.com>
To: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
Cc: "Arron Eicholz" <Arron.Eicholz@microsoft.com>
Hello all,

Testcases involved are:

http://test.csswg.org/source/contributors/microsoft/submitted/Chapter_6/html-attribute-010.htm

and

http://www.w3.org/Style/CSS/Test/CSS2.1/20100316/html4/html-attribute-010.htm

The testcase is incorrect as far as calculation of width of respective
boxes. The blue box offsetWidth is 102px; the orange box offsetWidth is
104px. So the tester should normally report a failure with regards to
the pass condition.

The testcase resorts to these gratuitious, unnecessary, unneeded
declarations:

            html, body, p, br, div
            {
                border: none;
                width: auto;
            }
            *
            {
                border: 1px solid blue;
                width: 100px;
            }


As a replacement, I propose this:

           textarea
            {
                border: 1px solid blue;
                padding: 0px;
                width: 100px;
            }
            div div
            {
                background-color: orange;
                border: 1px solid orange;
                height: 20px;
                width: 100px;
            }

with the same markup.

Addendum: some browsers, like Opera 10.10 and Internet Explorer 8, have
a default padding 1px for textarea coming from their respective default
browser stylesheets when others like Firefox 3.6.3 and Konqueror 4.4.3
do not.

Another odd thing is that IE8 in developer tools/layout gives a content
width of 104px for the inner div when the declaration is
div div
            {
                width: 102px;
            }

So, that one, I can not explain.

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

CSS 2.1 test suite (alpha 2; March 16th 2010):
http://www.w3.org/Style/CSS/Test/CSS2.1/20100316/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Wednesday, 12 May 2010 02:48:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:52:01 GMT