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

Re: CSS Variables

From: Linss, Peter <peter.linss@hp.com>
Date: Tue, 8 Feb 2011 18:34:31 +0000
To: Alex Russell <slightlyoff@google.com>
CC: Peter Beverloo <peter@lvp-media.com>, Tab Atkins Jr. <jackalmage@gmail.com>, Daniel Glazman <daniel.glazman@disruptive-innovations.com>, www-style list <www-style@w3.org>
Message-ID: <DED8A2B5-9433-4148-933F-FB7A98DEF020@hp.com>
On Feb 7, 2011, at 8:39 PM, Alex Russell wrote:

> On Sun, Feb 6, 2011 at 4:36 AM, Peter Beverloo <peter@lvp-media.com> wrote:
> That was exactly the objection that motivated the current use of "$" in declaration.
>  Therefore
> I'd be in favor of the following:
> @var foo red;
> bar {
>    color: var(foo);
> }
> This was my preference at first, but I eventually changed my mind.
> After some experience with the "var()" syntax via a pre-processor, it eventually wound up littering our code everywhere with syntax that wasn't trivial to un-pack when looking at it. The final ")" can be a long way from the "var(" component, and it's just a whole lot to type and read.

I don't understand that point, how far can a ')' be from the 'var('? There's only supposed to be a single ident in between... (and perhaps whitespace) I suppose you could put comments in between, but ok, don't do that.

Received on Tuesday, 8 February 2011 18:36:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:43 UTC