W3C home > Mailing lists > Public > www-style@w3.org > January 2010

Re: [css3-selectors] Grouping

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 8 Jan 2010 11:55:43 -0600
Message-ID: <dd0fbad1001080955t7f5f8a79n7a4cd34e8ef10d14@mail.gmail.com>
To: Nikita Popov <privat@ni-po.com>
Cc: news <news@terrainformatica.com>, www-style list <www-style@w3.org>
On Fri, Jan 8, 2010 at 11:33 AM, Nikita Popov <privat@ni-po.com> wrote:
> I think that the variant with brackets I proposed is little bit better,
> because it  could  be more widely used, e.g.
> input([type=submit], [type=number], ...)
> ("could" because I don't know, whether something like this, would be
> good...)

There's still no need to extend the syntax there.  You can do that
with the pseudoclass:

input:any([type=submit],[type=number]) {}

I don't think there's anything you could do with parens in selectors
that wouldn't be possible with the pseudoclass.  As well, you stay
within existing syntax, which means we don't have to change the
grammar and possibly introduce new bugs.

~TJ
Received on Friday, 8 January 2010 17:56:11 GMT

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