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

Re: [css-variables][css-conditional] variable declarations and references in @supports conditions

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 25 Aug 2013 11:27:26 -0700
Message-ID: <CAAWBYDCxDiGDoCL5PYFdfP+8x0qhwumaKxDSVdp0FiW9s9ZhrA@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: www-style list <www-style@w3.org>
On Sun, Aug 25, 2013 at 12:01 AM, Cameron McCormack <cam@mcc.id.au> wrote:
> I want to confirm that syntactically valid variable declarations and
> references in an @supports condition won't cause the condition to fail.
> Specifically:
>
>   @supports (color: var(a))             { ... succeeds ... }
>   @supports (color: 2px var(a))         { ... succeeds ... }
>   @supports (color: var(a) ! important) { ... succeeds ... }
>   @supports (var-a: abc)                { ... succeeds ... }
>   @supports (var-a: var(a))             { ... succeeds ... }
>
>   @supports (color: var(a,))            { ... fails ... }
>   @supports (color: var(a) ! something) { ... fails ... }
>   @supports (var-a: abc;)               { ... fails ... }
>   @supports (var-a:)                    { ... fails ... }

Interesting question.  I believe that since it just checks for parsing
errors, but doesn't interpret anything, that all your examples are
correct.

~TJ
Received on Sunday, 25 August 2013 18:28:12 UTC

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