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

Re: [csswg-drafts] [css-nesting] Semantic of nesting selector is unclear (#2895)

From: Brad Kemper via GitHub <sysbot+gh@w3.org>
Date: Fri, 18 Dec 2020 05:07:45 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-747870791-1608268064-sysbot+gh@w3.org>
It would be the `:matches(a, b) c :matches(a, b)` one. But it isn't nonsense. The inner a and b could match the same selector without being the same element. Imagine if it was `:matches(div, span) p :matches(div, span)`, for instance, which is a real world equivalent. That would match `div p div`, `span p span`, `div p span`, and `span p div`. Those do actually exist in the wild.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 18 December 2020 05:07:46 UTC

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