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

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