Closed TimothyGu closed 1 year ago
@TimothyGu thank you for reporting. Does browsers support that ? It is something new I have to look into, no previous experience with ShadowDOM. I will let you know as soon as I can find/read some documentation following your links. Have fun !
Yeah, browsers have started to implement it though it is indeed a recent change.
@TimothyGu I am closing this for now since there is no support for Shadow DOM in nwsapi. Also with time we might implement it in future releases.
See https://github.com/web-platform-tests/wpt/blob/7d99d2ca0def8468acfaee9aa15076a68efb21ca/shadow-dom/focus/focus-selector-delegatesFocus.html. Essentially, with the following setup:
However, currently only the latter returns true, since
document.activeElement
ishost
. (However,host.shadowRoot.activeElement
isshadowChild
.)The linked file has more examples, some using
<slot>
.