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

Re: [css3-conditional] navigator.supportsCSS rather than window.supportsCSS

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 3 Aug 2012 08:01:22 -0700
Message-ID: <CAAWBYDA9Z8Oq2MeA6XvAD48TXHWPdrR7uisZKZoZd2av1aO+cQ@mail.gmail.com>
To: Fran├žois REMY <fremycompany_pub@yahoo.fr>
Cc: www-style@w3.org, Florian Rivoal <florianr@opera.com>
On Fri, Aug 3, 2012 at 7:40 AM, Fran├žois REMY <fremycompany_pub@yahoo.fr> wrote:
> BTW, now that I accidentally used isValid using one argument, I wonder about
> :
>
>    if(CSSStyleDeclaration.isValid("a: value1; b: value2;")) {
>        ...
>    }

No, we went with the two-arg version on purpose.  The only reason to
accept multiples is to use the and/or/not, and JS already has those
built in.

~TJ
Received on Friday, 3 August 2012 15:02:18 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT