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

Yeah, except for the specifically-noted exceptions, Selectors only see a single tree at a time, so `:empty` matching an empty element with a shadow tree is correct per spec.

That said, `:empty` is kinda janky anyway, and making it more useful for cases like this seems all right to me. Could you elaborate on what you were actually trying to do with `:empty` where the current behavior caused you problems?

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6771#issuecomment-954123041 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:07:52 UTC