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

On Friday 2003-01-17 02:25 +0100, Rijk van Geijtenbeek wrote:
> ------- Forwarded message -------
> From: Stefan Huszics <Sauron@pp.sbbs.se>
> 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.

I agree that the correct behavior (before Ian swapped the colors in the
test) is red, and Mozilla should behave that way [1] starting in
tomorrow's build.  Inheritance works by computed values, so the computed
value of 'border-color' on the parent should be derived from the
computed value of 'color' on the parent, and this value should then be
inherited down to the child.

-David

[1] http://bugzilla.mozilla.org/show_bug.cgi?id=189402

-- 
L. David Baron                                <URL: http://dbaron.org/ >

Received on Friday, 17 January 2003 21:12:02 UTC