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

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