Re: [csswg-drafts] [selectors] `:empty` selector shouldn't match elements with shadow roots (#6771)

UAs may implement some replaced elements or such using closed shadows. That's an implementation detail that doesn't seem right to expose. And only checking for open shadows may be a bit inconsistent? And I agree it can be a bit strange to say that an element with shadow contents is empty, but the kinda analogous `:has(*)` doesn't look into shadows either.

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


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

Received on Thursday, 28 October 2021 19:34:44 UTC