Inspired by an article by @chriscoyier.net (on the benefits of Light DOM) I forked an web component by @cloudfour.com and refactored it to use the Light DOM. Really happy with it so far — no layout shift and CSS works the way god intended. https://codepen.io/nonsalant/pen/gbYRJKd
Comments
In other scenarios you can't do DOM operations in the constructor.. simply tested with a createElement.
Make it work from a