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

Re: [css-variables] Cycling between values with variables

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 14 May 2012 17:38:10 -0700
Message-ID: <CAAWBYDCOZV2CONYoEsw28tg5NxX=WTWggV9Uoc7yJXNucFfoJw@mail.gmail.com>
To: www-style list <www-style@w3.org>
On Mon, May 14, 2012 at 5:15 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> comment comment {
>  var-background: var(background2);
>  var-background2: var(background);
> }

Argh, Luke pointed out that the above is just a dependency cycle,
since they're each referring to the *current* value of the other var,
not the inherited value.

Screw it, I'm adding the var-inherit() function.  It enables several
other cool use-cases anyway.

~TJ
Received on Tuesday, 15 May 2012 00:39:02 GMT

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