David Robertson wrote:
> I had a bit of trouble sending this to the list, so I'm sorry if there's
> been any problems! =).
> ----
> 
> If I'm declaring two properties with the same value, such as:
> 
> body, html {  margin: 0px;
>   padding: 0px;
> }
> 
> It seems more intuitive to me to be able to write:
> 
> body, html {
>   margin, padding: 0px;
> }
> 
> In short, I'd like CSS to allow you to specify the values of multiple
> properties by separating them with a comma. I'd love to be able to do that,
> but I've no idea if it contradicts some rule in the spec.
> 
> Hope it helps your project!
>     Dave.


Currently CSS provides this by a class or attribute of a HTML element. A 
comma delimited string can only be used in a group selector string or an 
individual CSS property string (occurring between parenthesis) . 
Allowing "margin, padding" as a string would change the way that the 
syntax and grammar rules of CSS works and would stop the way that CSS 
can be added to. Please see,

<http://www.w3.org/TR/CSS21/syndata.html#rule-sets>

and note this part concerning commas in selectors.

"CSS 2.1 gives a special meaning to the comma (,) in selectors. However, 
since it is not known if the comma may acquire other meanings in future 
updates of CSS, the whole statement should be ignored if there is an 
error anywhere in the selector, even though the rest of the selector may 
look reasonable in CSS 2.1."





-- 
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to