When I call host.attachShadow({mode: 'open'}) on a div containing a few elements inside, the contents of the div seemingly disappears. The elements are still visible from devtools but are no longer visible on screen.
It doesn't matter if i fill the shadowRoot with anything; as soon as the shadow is attached the div's children disappear.
Demo on codepen: https://codepen.io/anon/pen/VrBdOe
Why does the content disappear? I've seen it on websites so I know it's possible somehow. See the code for https://www.polymer-project.org/2.0/start/quick-tour for example, the <pw-shell> node has a shadow-root and several siblings co-existing. What's going on there?