There is a pretty huge distinction between this and what some people seem to be suggesting though, right? What we have here 'fits' css...specificity, calculation and all.... otherwise its more like just a preprocessor. I want to reiterate that I think this is great...my comments were pretty minor. On Feb 17, 2012 6:01 PM, "François REMY" <fremycompany_pub@yahoo.fr> wrote: > 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:24:05 UTC
This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:12 UTC