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

[css-variables] Which value is substituted?

From: Tom Potts <karaken12@gmail.com>
Date: Thu, 4 Oct 2012 07:48:56 +0100
Message-ID: <CAF2aeH0p8j313xHwx+VnjE9TEuyw9caCdBRRJRi_-7hjRMzGyw@mail.gmail.com>
To: www-style@w3.org
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.

Received on Thursday, 4 October 2012 06:49:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:22 UTC