W3C home > Mailing lists > Public > www-style@w3.org > September 1999

Re: Name for default value of border-color needed

From: Chris Lilley <chris@w3.org>
Date: Fri, 24 Sep 1999 23:57:36 +0200
Message-ID: <37EBF3D0.C4925065@w3.org>
To: Tantek Celik <tantek@cs.stanford.edu>
CC: "L. David Baron" <dbaron@fas.harvard.edu>, cwilso@MICROSOFT.com, www-style@w3.org


Tantek Celik wrote:
> 
> > Now, suppose the above rule is instead:
> >
> > DIV {
> >   border: medium solid;
> >   }
> >
> > The first two statements above are still true.  However, the following
> > must equal something (and it shouldn't be the empty string because that
> > means the property was not set in the ruleset):
> >
> > rs.style.getPropertyValue("border-color")
> 
> No, empty is exactly correct.  Not setting the border-color means that the
> border gets its color from the 'color' property.
> 
> And yes, that does mean that the property was not set in the ruleset which
> is also correct (unlike background and font which reset unspecified
> elemental properties to initial values).

Well, it does reset it to the initial value, but the initial value is an
indirection.

--
Chris
Received on Saturday, 25 September 1999 18:27:09 GMT

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