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

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 UTC