W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2020

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

From: Mike Bremford via GitHub <sysbot+gh@w3.org>
Date: Wed, 04 Nov 2020 15:43:46 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-721808794-1604504625-sysbot+gh@w3.org>
In that case it's the same complexity as `:has()` - i.e., it's complex (see eg https://github.com/w3c/csswg-drafts/issues/3345).

`: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.

-- 
GitHub Notification of comment by faceless2
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5694#issuecomment-721808794 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 15:43:48 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:22 UTC