RE: CSS Variables

But both "px" and "200" are valid token streams, aren't they?

Yes, parser would have to re-tokenize the combination but it is not unheard of...

-----Original Message-----
From: L. David Baron [mailto:dbaron@dbaron.org] 
Sent: Tuesday, February 08, 2011 11:23 AM
To: Alex Mogilevsky
Cc: Linss, Peter; Tab Atkins Jr.; www-style list
Subject: Re: CSS Variables

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:36:10 UTC