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

I work on a chat widget which makes use of a shadow root to encapsulate CSS from the parent page. I noticed this behaviour when trying to add the chat widget to Shopify. Shopify had a CSS rule to hide empty divs which also ended up hiding the widget. I'm not sure on the exact reason for their CSS rule.

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