[CSS21] Border Conflict Resolution

Hi,
   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
http://lachy.id.au/

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