Re: [csswg-drafts] [selectors-4] New selector based on the amount of child elements (#5694)

> `:nth-children(2)` would be the same as `:has(> :nth-child(2)):not(:has(> :nth-child(3)))` - although I think it's fair to say the latter isn't quite as obvious.

The new `:nth-children(2)` is the same as `:has(> :nth-child(2)):not(:has(> :nth-child(3)))`, but with a lower specificity.

Just like `:only-child` is the same as `:nth-child(1):nth-last-child(1)`, but with a lower specificity.


-- 
GitHub Notification of comment by ramiy
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5694#issuecomment-721828527 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 4 November 2020 16:17:45 UTC