Re: [csswg-drafts] [css-selectors] new pseudo class that matches shadow hosts (#2908)

How would we expect something like this to work with an element that has a shadow root as applied by the user agent?

![Image of the User Agent applied shadow root for an input element](https://user-images.githubusercontent.com/1156657/117324778-1c4e8980-ae5e-11eb-9a9d-8dd263968b52.png)

Similarly, would we expect this pseudo class to work differently between open and closed shadow roots? Is a user agent shadow root technically closed, anyways?

I do like the idea that it supports better collection of elements with shadow roots. Having this capability also make me feel like there's some glimmer of a possibility that 3rd party tools (Hotjar style analytics, ARC toolkit style extensions, etc.) would be more eager to expand their coverage to sites that leverage shadow DOM by reducing the tree walking needed to activate their features in that context.

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


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

Received on Thursday, 6 May 2021 15:36:24 UTC