i'm learning ShadowDOM and facing this weird import issue. Without shadowDOM my icon appears on the screen but inside the shadowDOM it appears as box. I'm not sure what i'm doing wrong. Please guide me.
This works.
<style>
@import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css");
</style>
<i class="fa fa-arrow-left" aria-hidden="true"></i>
This does not.
<div id="root">root</div>
<script>
let root = document.getElementById('root').createShadowRoot();
root.innerHTML = `
<style>
@import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css");
</style>
<i class="fa fa-arrow-left" aria-hidden="true"></i>
`;
</script>