CodePen

HTML

            
              <label for="test">test</label>

<div id="shadowit">test</div>



            
          
!

CSS

            
              
            
          
!

JS

            
              var shadow = document.getElementById("shadowit");


var shadow = shadow.createShadowRoot();

shadow.innerHTML = "<input type='text' id='test'>";
            
          
!
999px
Loading ..................