W3C home > Mailing lists > Public > www-style@w3.org > February 2000

Re: Collapsed border model conflict resolution difficulties

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Mon, 7 Feb 2000 01:01:05 -0800 (PST)
Message-ID: <20000207090105.20733.qmail@web905.mail.yahoo.com>
To: www-style <www-style@w3.org>
<blockquote
cite="http://www.w3.org/TR/REC-CSS2/tables.html#border-conflict-resolution">
The following rules determine which border style "wins" in case of a
conflict:
1. Borders with the 'border-style' of 'hidden' take precedence over all
other conflicting borders. Any border with this value suppresses all
borders at this location.
2. Borders with a style of 'none' have the lowest priority. Only if the
border properties of all the elements meeting at this edge are 'none' will
the border be omitted (but note that 'none' is the default value for the
border style.)
3. If none of the styles is 'hidden' and at least one of them is not
'none', then narrow borders are discarded in favor of wider ones. If
several have the same 'border-width' than styles are preferred in this
order: 'double', 'solid', 'dashed', 'dotted', 'ridge', 'outset', 'groove',
and the lowest: 'inset'.
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.
</blockquote>

An additional rule is needed to give the colour in the following and
similar cases:
<tr>
<td style="border-right: red">
<td style="border-left: blue">

So:
<proposal>
5. If there is still a conflict (e.g., if adjacent cells have the same
width and style but different color), then the color is provided by the
element that occurs earlier in the markup.
</proposal>

=====
----------------------------------------------------------
From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS))
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Received on Monday, 7 February 2000 04:01:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:03 GMT