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

Re: Name for default value of border-color needed

From: Kishore Kulkarni <kulkarni@pathcom.com>
Date: Wed, 22 Sep 1999 21:13:01 -0400
Message-ID: <009601bf0560$c8b270c0$6491fad1@kulkarni.pathcom.com>
To: "L. David Baron" <dbaron@fas.harvard.edu>, <cwilso@MICROSOFT.com>, <www-style@w3.org>
Kartik is not on this email anymore.  Please do not send any mail to

-----Original Message-----
From: L. David Baron <dbaron@fas.harvard.edu>
To: cwilso@MICROSOFT.com <cwilso@MICROSOFT.com>; dbaron@fas.harvard.edu
<dbaron@fas.harvard.edu>; www-style@w3.org <www-style@w3.org>
Date: Wednesday, September 22, 1999 3:29 PM
Subject: RE: Name for default value of border-color needed

>On Wed, 22 Sep 1999 12:04:46 -0700, Chris Wilson (cwilso@MICROSOFT.com)
>> Could you explain why the DOM necessitates a name for the default color?
>Suppose you have the rule:
>DIV {
>  border: medium solid green;
>  }
>As explained in [1] and referenced in [2], setting a shorthand property
>sets the value of the relevant longhand properties.  (It could be
>stated somewhat more explicitly, but it is there.)  This means that if
>'rs' were the CSSStyleRule object representing the above rule, then the
>following are true:
>rs.style.getPropertyValue("border-width") == "medium";
>rs.style.getPropertyValue("border-style") == "solid";
>rs.style.getPropertyValue("border-color") == "green";
>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):
>It should be keyword that is the default value of the border-color
>[1] http://www.w3.org/TR/WD-DOM-Level-2/css.html#Level2-CSS-CSS2Properties
>L. David Baron    Sophomore, Harvard (Physics)    dbaron@fas.harvard.edu
>Links, SatPix, CSS, etc.     <URL: http://www.fas.harvard.edu/~dbaron/ >
>WSP CSS AC                      <URL: http://www.webstandards.org/css/ >
Received on Wednesday, 22 September 1999 21:07:48 GMT

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