W3C home > Mailing lists > Public > www-style@w3.org > February 2008

Re: [css3] Suggestion: Selector variables or “synonyms”

From: David Woolley <forums@david-woolley.me.uk>
Date: Sat, 09 Feb 2008 11:13:50 +0000
Message-ID: <47AD8AEE.4060405@david-woolley.me.uk>
To: www-style CSS <www-style@w3.org>

Jens Meiert wrote:
> Apparently, Carmelo Capinpin already suggested the concept in 2006 [1] (with few success, unfortunately [2]), but I may propose to consider something like “selector variables” in CSS 3 again in order to help both maintainability and style sheet efficiency.
> 
> The basic idea is to syntactically allow definitions like
> 
>   E = F;
> 
> … so that rules matching E would match F as well (and the other way around), while variable (or synonym) declarations could probably be located at the beginning of a style sheet or within a certain @-rule.
> 

Could you explain how this would interact with the cascade, in particular:

- how does it interact with !important rules;
- what is the scope of the effect.

-- 
David Woolley
Emails are not formal business letters, whatever businesses may want.
RFC1855 says there should be an address here, but, in a world of spam,
that is no longer good advice, as archive address hiding may not work.
Received on Saturday, 9 February 2008 11:14:08 GMT

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