W3C home > Mailing lists > Public > www-style@w3.org > January 2003

Inheritance for border-color - All browsers wrong except Opera 7?

From: Rijk van Geijtenbeek <rijk@iname.com>
Date: Fri, 17 Jan 2003 02:25:00 +0100
Message-ID: <8810017634.20030117022500@iname.com>
To: www-style@w3.org


Forwarded from the CSS-Design list.

------- Forwarded message -------
From: Stefan Huszics <Sauron@pp.sbbs.se>
To: css-d@lists.css-discuss.org
Subject: Re: [css-d] Inheritance for border-color - All browser wrong 
except Opera 7?
Date: Fri, 17 Jan 2003 01:46:22 +0100

> Kevin W wrote:
>
>> http://www.hixie.ch/tests/adhoc/css/inheritance/border-color/001.xml
>>
>> Should the border of <inner> be green or red?  Here is the CSS:
>> test { display: block; color: red; border: none; }
>> test > inner { border-color: inherit; border-style: solid; color: green; 
>> }
>>
>> Opera 7 says red, Mozilla, Opera 6 and IE (when converted to HTML) says 
>> green.
>>
>> [1] http://www.w3.org/TR/CSS2/box.html#border-color-properties
>
> "If an element's border color is not specified with a border property, 
> user agents must use the value of the element's color 
> <http://www.w3.org/TR/CSS2/colors.html#propdef-color> property as the 
> computed value for the border color."
>
> If we also consider what's written in the clarification section in the 
> CSS 2 errata [4] for  6.2.1
>
> "The 'inherit' value causes the properties value to be inherited. This 
> applies even to properties for which values do not otherwise inherit"
>
> I think it becomes clear that when you specifically state {border-color: 
> inherit} it does not mean the same thing as "not specified".
> Thus I would mean that the bordercolor should NOT ignore the 
> _explicitly_specified_ value of inherit, but indeed be inherited from 
> <test> which in turn gets it's from {color: red}.
>
> I can't say I'm 100% sure, but IMO it does look like O7 is alone in doing 
> it right (and consequently it would mean that Ians testcase is also 
> incorrect).
>
> It might be worth taking a look at the CSS3 spec drafts as well in 
> bugzilla before starting to write up a bugreport though, in case things 
> have changed since the CSS errata :)
>
> [4] http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata
>
  

Groeten,
 Rijk                          mailto:rijk@iname.com

Mot du Jour:
A day without sunshine is like night.
Received on Thursday, 16 January 2003 20:18:17 GMT

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