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

Re: [css-variables] Different syntax for variable definition and use

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 29 Aug 2012 10:41:16 -0700
Message-ID: <CAAWBYDANcddTpVWRJ2np5yroF27U9__b-+FseMa=KtPsVemG3w@mail.gmail.com>
To: François REMY <fremycompany_pub@yahoo.fr>
Cc: Chris Eppstein <chris@eppsteins.net>, Brian Kardell <bkardell@gmail.com>, "Jens O. Meiert" <jens@meiert.com>, www-style@w3.org
On Wed, Aug 29, 2012 at 10:34 AM, François REMY
<fremycompany_pub@yahoo.fr> wrote:
> |  Reading normal properties off of yourself is
> |  completely out, at least generally (doing it for *some* properties
> |  might be okay, but it locks us in to never introducing connections
> |  between those properties).
> Tab, I addressed this issue a °ton° of times already... The specified value
> of a property don't depend on any other property value than the one
> specified in the CSS file. There's no hidden inderdepency there, and it
> covers all use cases we need.
> Objectively, there's nothing preventing from using the specified value of
> any property as a token source for any other property, just as you do with
> custom properties.

I highly doubt you want only specified values.  If that's the case,
then the feature is just syntax sugar for declaring a variable and
using it twice.  You want at *least* computed values, so you can, for
example, get inherited values.  (Getting used values would no doubt be
great, but also incompatible with lots of other things.  Vars and
similar substitution mechanisms need to resolve by computed-value time
at the latest.)

Received on Wednesday, 29 August 2012 17:42:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:03 UTC