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

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

From: Brian Kardell <bkardell@gmail.com>
Date: Fri, 17 Feb 2012 18:23:35 -0500
Message-ID: <CADC=+jfkcKdu_q8gLkBmqRfZu2Qi=novZTDJC0g85z+dm+PtiQ@mail.gmail.com>
To: François REMY <fremycompany_pub@yahoo.fr>
Cc: "www-style@w3.org" <www-style@w3.org>, Chris Eppstein <chris@eppsteins.net>
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 GMT

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