RE: [css-variables] Different syntax for variable definition and use

> It seems CSS variables remain based on var-foo/var(foo). I stick to my
> argument that this is counter-intuitive.

I still agree.


> I don’t intend to argue against the current syntax forever, but I
> still like to ask, did we explore other syntactical options, like e.g.
> the following?

The CSS doesn't want to change the CSS Syntax for custom properties. Changing the syntax break tools, causes issues with older browsers, and requires quite a bit of work for implementers. Changing the core CSS Syntax should only be done when there's absolutely no other option, and here there are.

To me, the best solution is still { var-foo: xyz; var-bar: get(var-foo||fallback); } which has the nice benefits of being extensible to more greatness in the future revisions of [css-variables]. However, there's no agreement on that either.


> Generally, could someone—no offense, but maybe not Tab :)—explain why
> we are left with what we have now? I find it hard to believe that we
> have no options that are more usable, i.e. user-friendly.

You tempted me, but in the end, I guess it's better for me not to answer this :-) 		 	   		  

Received on Sunday, 17 February 2013 15:27:31 UTC