Re: Better Variables through Custom Properties

On 10/24/11 7:39 PM, Tab Atkins Jr. wrote:
>    data-main-color: #06c;

So what values does data-main-color take?  Is #aaa a color or an an ID 
or something else for that property?

> In this simple case, two custom properties are set on the root
> element.  They inherit down to the h1, where they are referenced with
> the data() function.

What does "referenced" mean?  Some sort of macro expansion that just 
replaces with literal strings?  Something else?

I do think this could be interesting if we actually define a sane 
processing model for it.

-Boris

Received on Tuesday, 25 October 2011 02:36:30 UTC