W3C home > Mailing lists > Public > www-style@w3.org > November 2011

Re: [variables] invalid variables

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 3 Nov 2011 14:29:27 -0700
Message-ID: <CAAWBYDA-UVc3Pec2ykF8PLYQz8SYKPExiNh-CRW2QybK05t+5g@mail.gmail.com>
To: Roland Steiner <rolandsteiner@google.com>
Cc: www-style@w3.org
On Thu, Nov 3, 2011 at 2:02 PM, Roland Steiner <rolandsteiner@google.com> wrote:
> A default value on data() should be fine I guess - it wouldn't quite address
> the 2nd of my examples, but I'm not sure that's compelling enough to warrant
> added complexity.
> For a default value, would chaining be possible? E.g.:
> .myvideo::play-button {
>   color: data(play-button-color, data(panel-color, black));
> }

I don't see why not.

> Completely random PS: I guess "data(data(variable-to-choose))" is probably
> prohibited as well? (no use case, just curious if that'd be doable).

Yeah, prohibited, at least at this level.  ^_^

~TJ
Received on Thursday, 3 November 2011 21:30:28 GMT

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