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

momomon has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors-4] The behaviour of :scope in DocumentFragment or ShadowRoot ==
What should documentFragment.querySelector(":scope") return?
Since DocumentFragment is not an element, it cannot return DocumentFragment.

In the case of ShadowRoot, what should shadowRoot.querySelector(':scope > div') return?

Link to the spec section:
https://drafts.csswg.org/selectors-4/#scoping

cc @tabatkins @fantasai 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3016 using your GitHub account

Received on Tuesday, 14 August 2018 07:09:36 UTC