W3C home > Mailing lists > Public > www-style@w3.org > July 2005

[CSS21] Border Conflict Resolution

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sat, 02 Jul 2005 23:46:42 +1000
Message-ID: <42C69AC2.4050504@lachy.id.au>
To: www-style@w3.org

   While attempting to greatly improve upon some CSS tests I had written 
previously for the border collapse conflict resolution algorithm, I've 
come across an issue in the spec.  Step 4 of the conflict resolution 
algorithm states [1]:

4. If border styles differ only in color, then a style set on a cell
    wins over one on a row, which wins over a row group, column, column
    group and, lastly, table. It is undefined which color is used when
    two elements of the same type disagree.

It needs to be defined which border of two elements of the same type 
takes precedence when they only differ by colour.  Both Firefox and 
Opera take a completely different approach, yet because the behaviour is 
undefined, both are correct.  See the test case [2].

Firefox seems to apply the border colour from the cell above or the 
left, while Opera seems to apply the border colour from the cell below 
or to the right.  I think it makes more sense the way Firefox implements 
it, but either way, I think it should be defined.

[1] http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution
[2] http://lachy.id.au/dev/css/tests/bordercollapse/012

Lachlan Hunt
Received on Saturday, 2 July 2005 13:46:49 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:19 UTC