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

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

From: L. David Baron <dbaron@dbaron.org>
Date: Fri, 17 Jan 2003 21:12:00 -0500
To: www-style@w3.org
Message-ID: <20030117211200.A3762@is04.fas.harvard.edu>

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 GMT

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