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>
The following rules determine which border style "wins" in case of a
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.

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

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.

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.
Received on Monday, 7 February 2000 04:01:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:53 UTC