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

Re: [css-variables] the new ED for CSS Variables

From: Florian Rivoal <florianr@opera.com>
Date: Mon, 20 Feb 2012 11:30:03 +0100
To: www-style@w3.org
Message-ID: <op.v9y3gdxp4p7avi@localhost.localdomain>
On Fri, 17 Feb 2012 23:35:09 +0100, Chris Eppstein <chris@eppsteins.net>  

> What's wrong with using $?
>  :root { $accentColor: green; }
>   h1 { color: $accentColor; }

One obvious conflict many seem to be overlooking is the conflict with
the use of $ in css preprocessors.

IMO, the proposal for variables is great, but it is quite different from
what is currently found in preprocessors like sass. Sass also offers  

In sass, both variables and mixins use $ as part of their syntax. If
we start allowing $ in css, sass probably needs to be changed to use
something else, and I don't think this is desirable.

Compatibility with sass as such isn't an important goal for the CSSWG,
but it is a good example of why changes to the core grammar are not
desirable, as they make break unsuspecting tools in the wild that
rely (maybe unknowingly) on the core grammar staying what it is.

  - Florian
Received on Monday, 20 February 2012 10:30:37 UTC

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