W3C home > Mailing lists > Public > www-style@w3.org > October 2011

Re: [css3-conditional] @supports API

From: Paul Irish <paul.irish@gmail.com>
Date: Mon, 10 Oct 2011 15:34:23 -0700
Message-ID: <CAHSVx=-7kbZeLq1kQvUD3kqwpAsZoE_GuocQ90CGA=P=p9mPBA@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: Peter Beverloo <peter@lvp-media.com>, www-style@w3.org
On Mon, Oct 10, 2011 at 11:55 AM, L. David Baron <dbaron@dbaron.org> wrote:

> On Monday 2011-10-10 19:33 +0100, Peter Beverloo wrote:
>
...

> > window.supportsStyle('width', '1fr');
> >
> > Neither would not support checking multiple property-value pairs at once,
> > but it reduces complexity significantly.
>
> Agreed; I think I like the second form better.  Support for handling
> 'or', 'and', and 'not' isn't needed for JS callers, since JS has
> those already.
>

Yeah, second form is better. More JS-y and since multiple prop/value pairs
arent allowed (alternate OR syntax thread), its clearer to just handle these
things without mixing language syntaxes.
Received on Monday, 10 October 2011 22:35:21 GMT

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