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:




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

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

As a replacement, I propose this:

                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:

CSS 2.1 test suite (alpha 2; March 16th 2010):

CSS 2.1 test suite contributors:
Received on Wednesday, 12 May 2010 02:48:55 UTC

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