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

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 UTC