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

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.

~TJ

Received on Wednesday, 3 September 2014 23:22:06 UTC