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

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 UTC