Re: [csswg-drafts] [selectors-4] The behaviour of :scope in DocumentFragment or ShadowRoot

No need to explicitly tag us in, we read all the issues anyway.

Your first question is "nothing" - querySelector()'s argument is a [scoped selector](, which only matches *descendants* of the scoping element.

For your second, it's defined in [CSS Scoping]( - the shadow root is a virtual scoping root. The shadow root *does* have children - the elements of the shadow tree - so they're appropriately matched. If there are any top-level `div`s in the shadow tree, they'll be returned by that query.

GitHub Notification of comment by tabatkins
Please view or discuss this issue at using your GitHub account

Received on Tuesday, 14 August 2018 17:54:09 UTC