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

Just noticed something else:
 
If we allow
 
   x { $a:a; color: $a; }
 
people will not understand why
 
   x { color: green; border-color: color }

doesn't work.
 
 
BTW, we don't need to a data(xxx) function for html data attributes. We can simply use attr(data-xxx) as usual.
 
 

________________________________
De : Chris Eppstein <chris@eppsteins.net>
À : Tab Atkins Jr. <jackalmage@gmail.com> 
Cc : François REMY <fremycompany_pub@yahoo.fr>; www-style@w3.org 
Envoyé le : Vendredi 17 février 2012 23h43
Objet : Re: [css-variables] the new ED for CSS Variables


Variables are a new primitive. Seems justified.

chris


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.
>
>~TJ
>

Received on Friday, 17 February 2012 23:01:14 UTC