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

Re: [selectors4] :current() argument: list of compound selectors or list of selectors?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 16 Jan 2014 14:48:31 -0800
Message-ID: <CAAWBYDDAEd+0sji=aOK57d+bhQbSfD45F+Hfwo5ZD8WpFnb07A@mail.gmail.com>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: www-style <www-style@w3.org>
On Thu, Jan 16, 2014 at 8:13 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
> Hi,
> The draft currently says:
>> Its alternate form :current(), like :matches(), takes a list of
>> compound selectors as its argument
> Except that :matches() changed and is not limited to a list of compound
> selectors anymore, but can take any list of selectors. (At least in the
> complete profile.)
> Should :current() be changed as well? If not, the spec needs to not say it’s
> like :matches().

I forgot that this syntax even exists.  I wonder why it does?
:current(foo, bar) is exactly equivalent to :matches(foo,
bar):current.  Is it really sufficiently worthwhile to drop those

Received on Thursday, 16 January 2014 22:49:21 UTC

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