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

Re: CSS Variables

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 8 Feb 2011 11:22:31 -0800
To: Alex Mogilevsky <alexmog@microsoft.com>
Cc: "Linss, Peter" <peter.linss@hp.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <20110208192231.GA22947@pickering.dbaron.org>
On Tuesday 2011-02-08 18:35 +0000, Alex Mogilevsky wrote:
> You can do the second one with $ too:
> 
> @var $a px;
> @var $b 200;		p { width: $b$a; }	

If variables represent a token stream, you can't, since "200px" is a
single token.

-David.

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Tuesday, 8 February 2011 19:23:05 GMT

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