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

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 UTC