I'm trying to create a shadowDOM like the following but it is blocking the entire page and displaying the shadowDOM:
var host = document.activeElement;
var root = host.attachShadow({mode: 'open'});
var div = document.createElement('div');
div.className = 'div';
div.innerHTML = '<style>.div{position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);}</style>this is shadow dom';
root.appendChild(div);
how to create a shadowDOM that appears below the current HTML element?