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

Re: [css-variables] Which value is substituted?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 4 Oct 2012 09:38:26 -0700
Message-ID: <CAAWBYDBoRKBLzEC3F1i-FMWmTUvEfTET4oRivkn+2qd9K4Rkow@mail.gmail.com>
To: Tom Potts <karaken12@gmail.com>
Cc: www-style@w3.org
On Wed, Oct 3, 2012 at 11:48 PM, Tom Potts <karaken12@gmail.com> wrote:
> Hi, all.  Sorry if this has already been answered, but it wasn't clear to me
> from reading the spec.  When using a custom property reference (i.e.
> "var(foo)"), the spec says to substitute the "value" of the associated
> variable (relevant quotes are "... the variable's value is substituted as
> normal" and "A variable is substituted for its value in the property value
> at computed-value time.").  What's not clear to me here is what "value"
> actually means in this context.  The only reasonable candidates I can think
> of are the specified value and the computed value, but I think it's
> important which one of these is meant, and I don't think it's clear in the
> spec as written.

Oh, good catch!  I don't actually define that.  I'll fix.

It's the computed value (after resolving any var() references in the
corresponding var-* property, so that you're left with a var()-less
value).

~TJ
Received on Thursday, 4 October 2012 16:39:16 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT