CSS2.1 border conflict resolution

Bernd Mielke wrote:
 >
> The discussion process for CSS2.1 should reconsider the well
 > known questions that have been raised against CSS2.0
 > (http://lists.w3.org/Archives/Public/www-style/1999Jul/0077.html).
>
>> * The border collision rules (17.6.2) are ambiguous when borders differ
>> only in color and the conflicting borders are on adjacent cells, or
>> adjacent rows, etc.  I think a rule such as:
>>
>>   5. the border on the element earlier in the document tree wins
>>
>> would be good.  (I chose earlier because of table-header-groups and
>> table-footer-groups.)
> 
> I think this is a good proposal.

Here's formal wording, for those who want it:

http://www.w3.org/TR/REC-CSS2/tables.html#border-conflict-resolution :
   |   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.

I propose adding "If the borders are set on the same
type of element, then the border on the element earlier
in the document tree wins."

If no reference is wanted to the document tree, then
the wording can be changed to:

  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 header row group, footer row
     group, normal row group, column, column group
     and, lastly, table. If the conflicting borders
     are set on the same type of table element, then
     the border on the earlier element wins.

~fantasai

Received on Thursday, 19 December 2002 18:00:33 UTC