Use a remote stylesheet inside a template tag (with shadow dom)
问题 I am trying to make a semi-resuseable widget but I am running into a problem. I am trying to encapsulate a some CSS code inside a shadow root so that it does not affect the rest of the webpage but this CSS is used across multiple widgets so I am trying to include a remote stylesheet. None of the examples I have found use a remote style sheet and I was wondering if this was possible. EX: <template id="templateContent"> <head> <link rel="stylesheet" href="css/generalStyle1.css"> </head> <body>