Open BarishNamazov opened 2 years ago
In script.js, the CSS is linked via <link rel="stylesheet" href="shadowdom.css">. This does not work in other webpages since I think it will try to load css file from website's root path. I fix might be using href="./shadowdom.css".
script.js
<link rel="stylesheet" href="shadowdom.css">
href="./shadowdom.css"
Fixing this is important for alignment. See this example: https://jsfiddle.net/vsgmLh7c/60/
In
script.js
, the CSS is linked via<link rel="stylesheet" href="shadowdom.css">
. This does not work in other webpages since I think it will try to load css file from website's root path. I fix might be usinghref="./shadowdom.css"
.