W3C home > Mailing lists > Public > www-style@w3.org > August 2002

[Suggestion] Multiple 'property' tokens in 'declaration' syntax

From: Christopher Lee <cml01776@yahoo.com>
Date: Thu, 29 Aug 2002 04:54:08 -0700 (PDT)
Message-ID: <20020829115408.47515.qmail@web13605.mail.yahoo.com>
To: www-style@w3.org

To the Editors,

I propose that the syntax for 'declaration' be modified to allow for a
comma-separated list of one or more 'property' tokens so that the same
value can be assigned to several properties at once, much like multiple
selectors can receive the same ruleset.  Example:

Instead of:   P {margin-left: 1em; margin-right: 1em; text-indent: 1em;}
Condense to:  P {margin-left, margin-right, text-indent: 1em;}
/* avoids specifying a value for top and bottom margins */

Instead of:   P {color: red; border-color: red;}
Condense to:  P {color, border-color: red;}

This is mostly a space-saving suggestion, but can be a time-saver --- it
allows an author to change the value for multiple properties with one
change rather than having to hunt through the entire ruleset and change
every instance of the value.

Perhaps it is too early in development for a particularly good example. 
Thoughts or comments?

Sincerely,
Christopher Lee

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
Received on Thursday, 29 August 2002 07:54:09 GMT

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