A custom element can accept content from the page that uses it. That content—children added to the host element in the page DOM—is its light DOM. It is separate from the component’s shadow DOM, which holds the component’s internal tree. section 7.5.2
Once a component has a shadow root, render internal content through the shadow root. Calling `this.append()` or setting `this.innerHTML` adds nodes to the host’s light DOM instead. Those nodes render within the component only when a `<slot>` projects them. section 7.8.1 section 7.5.2
Consumer-provided content
`<product-details><span slot="title">Camera</span>A great camera.</product-details>` supplies a named title and other child content. Slots can display those children within the shadow layout, but the nodes stay in their original page-DOM location. The browser’s flattened tree describes the rendered result, not a move into the shadow DOM. section 8.4.3
Use slots when consumers should provide content while the component retains its own structure and behavior. Templates can also be cloned into either light or shadow DOM; choose the destination according to the encapsulation needed. section 8.9
