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

RE: [css-variables] Hidden costs.

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Thu, 17 Feb 2011 04:33:01 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>, fantasai <fantasai.lists@inkedblade.net>
CC: Andrew Fedoniouk <news@terrainformatica.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E2AB608B7@TK5EX14MBXC120.redmond.corp.microsoft.com>
> >> Neither is optimal.
> >
> > I don't understand why the developer is not assigning class values to
> > these cells based on where their data is coming from, nor do I
> > understand how variables is solving this person's problem.
> 
> They are.  Variables help here because they can use the variable in a
> declaration block for the class, and then just tweak the var to change the
> value.
> 
> In effect, the var is acting like a reference into the stylesheet here.

Right. I still don't understand why they need variables to do this. They could
stick those classes in a separate stylesheet and dynamically mess with it today.
Received on Thursday, 17 February 2011 04:33:38 GMT

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