W3C home > Mailing lists > Public > www-style@w3.org > May 2012

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 31 May 2012 08:32:24 -0700
Message-ID: <CAAWBYDAHkZVRXbT+vedvuHYrswS-C1i1Su+0qZMK4i3GgSDX6A@mail.gmail.com>
To: Divya Manian <manian@adobe.com>
Cc: Sylvain Galineau <sylvaing@microsoft.com>, François REMY <fremycompany_pub@yahoo.fr>, "www-style@w3.org" <www-style@w3.org>
On Thu, May 31, 2012 at 8:21 AM, Divya Manian <manian@adobe.com> wrote:
> On 5/30/12 7:04 PM, "Sylvain Galineau" <sylvaing@microsoft.com> wrote:
>>Not to prove that everyone's preference is someone else's ugly but I can't
>>stand the x-convention. If we're going to have a prefix why not make it
>>something
>>readable. For instance:
>>
>>       :root { define-link-color: blue }
>>       a { color: $link-color }
>>
>>...is imo a reasonable balance: terse at the point of use and very
>>explicit at
>>the point of declaration since there should be many of the former for
>>each of
>>the latter.
>
> We cant have two different 'prefix'es. It is just one to refer to a
> variable. The very idea of mixing up a function with a name('define') is
> completely confusing.

I've come to strongly agree with you.  I'm in the middle of a rewrite
to accommodate some of the changes I'd suggested, like $foo for using
a var, and when I'm changing an example I have to *fight* to keep
myself from saying "color: $var-main-color;".

~TJ
Received on Thursday, 31 May 2012 15:33:19 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:54 GMT