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

Re: [css-variables] using variables in shorthands

From: Shane Stephens <shans@google.com>
Date: Mon, 12 Mar 2012 20:37:10 +1100
Message-ID: <CAGTfzwS7u3KzTOJLRiEw3kdiNL0ORCgvBpbbAjkibbtciJEL+w@mail.gmail.com>
To: Florian Rivoal <florianr@opera.com>
Cc: www-style@w3.org
Given that encoding multiple values isn't going to make anything
*harder*, then, I withdraw my comment.

Cheers,
    -Shane

On Mon, Mar 12, 2012 at 7:58 PM, Florian Rivoal <florianr@opera.com> wrote:
> On Sun, 11 Mar 2012 10:05:15 +0100, 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).
>
>
> But do you need to type them at all until the variables are used?
> Intuitively,
> I'd just let the lexer turn the content of the variable into a list of
> tokens,
> and keep it that way until you're actually expanding the variable into a
> property
> other than another data-* property. Only then can you unambiguously
> determine what
> these tokens mean (if anything).
>
>
>> The other two cases are somewhat serious :)
>
>
> Right. Regardless of the whether you can store single values or not, my
> original
> point stands.
>
>  - Florian
>
Received on Monday, 12 March 2012 09:37:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:51 GMT