Closed
Description
Vue version
3.5.16
Link to minimal reproduction
Steps to reproduce
When mounting a Vue-App to an external document like an iframe or a popup window, all the functionality from JavaScript is working, but the Style of a Single-File Components is attached to the calling document instead of the document of the mounted element.
const win = open("", "", "popup")
createApp(Comp).mount(win.document.body)
What is expected?
The CSS should be attached to the rootContainer's document of mount().
What is actually happening?
The CSS is attached to the document of the JavaScript scope
System Info
Any additional comments?
Using node.ownerDocument
instead of window.document
Metadata
Metadata
Assignees
Labels
No labels