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

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

From: Arron Eicholz <Arron.Eicholz@microsoft.com>
Date: Fri, 17 Feb 2012 23:26:31 +0000
To: Chris Eppstein <chris@eppsteins.net>, Tab Atkins Jr. <jackalmage@gmail.com>
CC: François REMY <fremycompany_pub@yahoo.fr>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <07349ECFC3608F48BC3B10459913E70B1E3A0BE3@TK5EX14MBXC293.redmond.corp.microsoft.com>
On Friday, February 17, 2012 2:43 PM Chris Eppstein wrote:
>Variables are a new primitive. Seems justified.

Altering the core grammar takes a great deal of investigation. An alteration to the core grammar requires us to analyze all 400+ existing, proposed and suggested properties, including SVG properties, (there are actually 606 by my last count, but who is keeping track). We must determine if any of them have to be updated, altered or changed to account for this new primitive. Don't forget to multiply all the values that all those properties take and how they will be affected. This is an extensive amount of work and who knows what we might miss when looking at all the values that those properties take.

Now take into account the OM and Javascript side of things and even how frameworks interact. Will a '$' interfere or makes things confusing? My guess is it will, at the very least it will make things confusing. It also wouldn't shock me if it broke a Javascript library somewhere.

In the end the cost is very high for changing the core grammar. Going with 'data-' or 'var-' really doesn't have much impact in this regard and would be the best solution to move things quickly.

--
Thanks,
Arron Eicholz


>
>On Fri, Feb 17, 2012 at 2:39 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>>On Fri, Feb 17, 2012 at 2:35 PM, Chris Eppstein <chris@eppsteins.net> wrote:
>> What's wrong with using $?
>>
>>  :root { $accentColor: green; }
>>   h1 { color: $accentColor; }
>It violates the Core Grammar, unfortunately.  That doesn't make it
>impossible to do, it just means we need a pretty good justification
>for it.
Received on Friday, 17 February 2012 23:27:08 GMT

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