Re: [csswg-drafts] [css-scoping] [selectors] :scope and DocumentFragment / ShadowRoot (#7261)

In my opinion, the `:scope` should match the node itself, even if it is virtual. So calling `:scope > *` on a DocumentFragment should returns its direct children, just as it would have happen on a HTMLElement. It solves the problem: I have a container, I want to select some of its direct children, how can I do it ? ex `:scope > scope[name="abc"]`.

Usually, the `:scope` usage is coupled with custom elements.

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


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

Received on Monday, 9 May 2022 06:48:47 UTC