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

Re: [selectors] Are combinators allowed inside pseudo class?

From: Benjamin Poulain <bpoulain@apple.com>
Date: Wed, 03 Sep 2014 19:51:49 -0700
Cc: www-style list <www-style@w3.org>
Message-id: <12E666EC-5F89-4B62-B6C9-1D898ADF8F88@apple.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
On Sep 3, 2014, at 4:21 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Wed, Sep 3, 2014 at 3:32 PM, Benjamin Poulain <bpoulain@apple.com> wrote:
>> For some reason I believed combinators were not allowed inside pseudo class.
>> It looks like there is no such restriction in the definition. The various pseudo classes accepting selectors take “selector list” as an argument. Selector list is defined including “complex selectors”.
>> 
>> For example, the new nth-child with a selector list could be:
>>    :nth-child(2n of a>b+c, d>e>f)
>> 
>> Is that the case? Am I missing something?
> 
> You're correct, that is allowed.  Unless they specify a compound
> selector list; "selector list" by itself refers to a list of complex
> selectors, which allow combinators.

Thanks for clarifying this.

Benjamin
Received on Thursday, 4 September 2014 02:53:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:41 UTC