Re: [css-variables] CSS Variables are a NEW kind of variable

On 5/30/12 12:59 AM, "François REMY" <fremycompany_pub@yahoo.fr> wrote:
>
>For instance, if I was responsible of the spec, I think I would have
>renamed 
>"variables" into "user-defined properties".
>
>I completely agree. I also would prefer something like "just use an
>identifier".
>
>    :root { x-link-color: blue }
>    a { color: x-link-color }
>
>If this is not possible to do, we shall need an introductory token, which
>$ 
>can be. However, even with "x-", the var() function should be kept to
>provide a default (as second argument) for when the variable is invalid.

This is infinitely better than what has been proposed so far. I think
defining them as user-defined property also makes a lot of sense. X-prefix
would work for me too! I am not beholden to the $ sign.

Received on Wednesday, 30 May 2012 16:49:31 UTC