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

Re: [css-variables] using variables in shorthands

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 11 Mar 2012 06:08:16 -0700
Message-ID: <CAAWBYDDOav8i-wUpD+4QOS+Kfrwjzt52K3QW6OODOtL1tH87Pw@mail.gmail.com>
To: Shane Stephens <shans@google.com>
Cc: Florian Rivoal <florianr@opera.com>, "www-style@w3.org" <www-style@w3.org>
On Sun, Mar 11, 2012 at 1:05 AM, Shane Stephens <shans@google.com> wrote:
> Hi Florian,
> I don't think variables should be able to encode multiple values (like
> 1em 2em or 1em 2em 3em 4em), because these are a nightmare to type (as
> in type check, not type out).

This cuts out some major use-cases, like being able to encode a
text-shadow or a font stack.  I'm against this limitation.  I'm aware
that it makes things harder, but it also makes things much more

It also cuts out part of the secondary use-case of using Variables
just to pass around arbitrary JS data with selectors and the cascade.
You'd have to encode your multi-part value in a string and then strip
off the quotes when you received the string from the CSSOM.

Received on Sunday, 11 March 2012 13:09:03 UTC

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