[RC6] border-conflict-element-001 is incorrect, invalid

Arron,

[RC6]
http://test.csswg.org/suites/css2.1/20110323/html4/border-conflict-element-001.htm

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/border-conflict-element-001.htm


use this code:

           .collapsing1
            {
                border-left: red;
            }
            #collapsing2
            {
                border-top: red;
            }


but border-left and border-top are shorthand properties

8.5.4 Border shorthand properties: 'border-top', 'border-right',
'border-bottom', 'border-left', and 'border'
http://www.w3.org/TR/CSS21/box.html#border-shorthand-properties

So, if border-left-style, border-left-width, border-top-style and
border-top-width values are omitted, then such "missing" values are the
initial values. In this case, it is 'none' for style and 'medium' for
width.

"Omitted values are set to their initial values."
http://www.w3.org/TR/CSS21/box.html#border-shorthand-properties

So, here, there is no border conflict at all; the testcase is not
testing what it was originally trying to test.

Proposed correction
-------------------

           .collapsing1
            {
                border-left-color: red;
            }
            #collapsing2
            {
                border-top-color: red;
            }

and then, there would be a conflict with same border-style and same
border-width for adjacent cells.

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

CSS 2.1 Test suite RC6, March 23rd 2011:
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

CSS 2.1 test suite harness:
http://test.csswg.org/harness/

Contributing to to CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html

Received on Sunday, 9 October 2011 01:22:08 UTC