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

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

From: Marat Tanalin | tanalin.com <mtanalin@yandex.ru>
Date: Thu, 31 May 2012 16:27:04 +0400
To: Sylvain Galineau <sylvaing@microsoft.com>
Cc: (wrong string) Γ§ois REMY <fremycompany_pub@yahoo.fr>, "\"www-style@w3.org\"" <www-style@w3.org>
Message-Id: <96201338467224@web26g.yandex.ru>
31.05.2012, 06:04, "Sylvain Galineau" <sylvaing@microsoft.com>:
> 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.

Maybe using `set-` prefix for setting a reusable value would be even more intuitive.

Similarly, `get()` function could be used to get the value when ability to provide a default value is needed.

So we have set/get operation pair.
Received on Thursday, 31 May 2012 12:27:37 GMT

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