W3C home > Mailing lists > Public > www-style@w3.org > February 2013

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

From: François REMY <francois.remy.dev@outlook.com>
Date: Sun, 17 Feb 2013 16:27:03 +0100
Message-ID: <DUB002-W44CFE3AB5BF9C3777FF6A0A50C0@phx.gbl>
To: "Jens O. Meiert" <jens@meiert.com>, "www-style@w3.org" <www-style@w3.org>
> 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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:06 GMT