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

Re: CSS Variables

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 7 Feb 2011 11:03:22 -0800
Message-ID: <AANLkTim1U_GOKFsn9vhb6MVtQRJ5or_47=fxtZzzdJny@mail.gmail.com>
To: Jon Rimmer <jon.rimmer@gmail.com>
Cc: David Woolley <forums@david-woolley.me.uk>, www-style list <www-style@w3.org>
On Sun, Feb 6, 2011 at 7:51 AM, Jon Rimmer <jon.rimmer@gmail.com> wrote:
> In the case of CSS variables, pre-processors are useful, but not
> everything can be done with them. A subset of it can be, but since the
> variables are not reified in the CSSOM, it's impossible to access and
> modify variables in the browser. I suppose you could have a
> client-side script to parse the custom language, produce CSS, and also
> maintain its own corresponding object model to allow later changes,
> but such a complex, Russian-doll style approach hardly seems desirable
> just to avoid making additions to CSS itself.

Indeed, the CSSOM side of variables will be much harder to shim in.
Just the CSS side of things is fine, though.  It's no more difficult
than what preprocessors are already doing.

~TJ
Received on Monday, 7 February 2011 19:04:14 GMT

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