- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Tue, 14 Aug 2018 17:54:06 +0000
- To: public-css-archive@w3.org
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](https://drafts.csswg.org/selectors-4/#scoped-selector), which only matches *descendants* of the scoping element. For your second, it's defined in [CSS Scoping](https://drafts.csswg.org/css-scoping/#selectors-data-model) - 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 https://github.com/w3c/csswg-drafts/issues/3016#issuecomment-412960127 using your GitHub account
Received on Tuesday, 14 August 2018 17:54:09 UTC