Use a remote stylesheet inside a template tag (with shadow dom)

后端 未结 4 746
生来不讨喜
生来不讨喜 2021-01-01 22:13

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

4条回答
  •  没有蜡笔的小新
    2021-01-01 22:20

    i came across the same problem recently, what i ended up doing was using:

    
    

    additional info: this worked just fine except, now i'm having some cache issues as Chrome does not seem to reload those ressources after a hard reload.

提交回复
热议问题