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

> Closing the issue again, hopefully we can change implementations rather than changing the spec.

I wrote it in an edit, but note that I think the current browser behavior (where `:scope` returns the html element, `:scope > *` returns body and head) *is* reasonable for `document`. I'd honestly prefer to fix the DOM spec there; it's a trivial edit.

But for document fragments (like shadow roots) `:scope` does indeed need to match the docfrag itself.

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


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

Received on Thursday, 16 February 2023 20:51:49 UTC