Re: WebKit now supports CSS Variables

> b) avoid to put css users into the hell of global variables, where
>    they will be enforced to implement same functionality as in (a),
>    but in this case: no rules, no mercy, no implementation efficiency...
>    (hopefully not all users, just cssom/js ones. there is no needs
>    for such 'variables' _inside_ css language)

If you don't want to modify the value of a variable, don't do it ;-)
You don't need any specification for that. Normally, the developers will 
never give the same name for two constants.
If you must build CSS that can be used in another sites, you can prefix it. 
Like @variables { phpBB-bgColor: blue; }

It's the same when you make any CSS. Sometimes you've rules that you don't 
want to see overrided, but you can't force it.

But have you considered my private/friend/public variable propagation 
process ? (Defined in a older mail)
So you can define some variables for a specific stylesheet, and you can be 
sure that it can't be modified by another CSS.

Eg :

    @variables private {
        /*
             This declaration will be the most valuable into this 
stylesheet, even if friend/public values are defined anywhere else
             This declaration should have no effect on any other stylesheet.
        */
        bgColor: blue;
    }

Fremy 

Received on Tuesday, 1 July 2008 18:47:22 UTC