- From: Jochen Kühner via GitHub <sysbot+gh@w3.org>
- Date: Sat, 15 Jun 2024 06:16:11 +0000
- To: public-css-archive@w3.org
My question to this, how can the styles be shared between two windows? Problem now is, you can move the webcomponent to a new window (via adoptNode) but then you need to copy all the styles. Also the component can not do this itself, cause the adopted callback is fired when the component is adopted and then the adoptedStylesheets list is empty. I did a hack here so it copies all the styles https://github.com/node-projects/dock-spawn-ts/blob/e90e3e50b7022e9525bdf8e53031e053ca86f4e0/src/BrowserDialogHelper.ts#L63 But I'd like to see platform support. It is usefull if you have a dockui like vscode (sample of such a ui with webcomponents https://node-projects.github.io/web-component-designer-demo/index.html) <img width="338" alt="image" src="https://github.com/w3c/csswg-drafts/assets/364896/c9a8709e-85c9-4dca-a976-f0da3807dd69"> -- GitHub Notification of comment by jogibear9988 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10013#issuecomment-2169155120 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 15 June 2024 06:16:12 UTC