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

Inconsistency with shorthand properties in CSS1

From: Galarneau, Neil <ngalarneau@concord6.powersoft.com>
Date: Wed, 29 Jan 97 10:59:00 PST
To: "'www-style'" <www-style@www10.w3.org>
Cc: "Galarneau, Neil" <ngalarneau@concord6.powersoft.com>
Message-Id: <32EF9E60@smtpgw.powersoft.com>



Normally shorthand properties such as background can be
expressed equivalently using multiple individual properties.
For example

A {background: red fixed repeat-x}

is equivalent to

A {background-color: red;
   background-attachment: fixed;
   background-repeat: repeat-x}

This is not true however for some of the border properties. For example

LI {border-right: thin double blue}

cannot be expressed using individual properties because there are no
border-right-style or border-right-color properties (while there is
a border-right-width).


Is this difference in model intentional?  Is it going to stay this way?


Thanks,

Neil
ngalarneau@powersoft.com

P.S.  The fact that the border-style values could be repeated up to 4   
times was
omitted from the syntax portion of the doc, but was in the description   
portion.
Received on Wednesday, 29 January 1997 11:01:14 GMT

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