light, shadow, flattened DOM
Last updated
Was this helpful?
Last updated
Was this helpful?
The markup a user of your component writes. This DOM lives outside the component's shadow DOM. It is the element's actual children.
The result of the browser distributing the user's light DOM into your shadow DOM, rendering the final product. The flattened tree is what you ultimately see in the DevTools and what's rendered on the page.
the flattened DOM exists only for rendering and event-handling purposes. It’s kind of “virtual”. That’s how things are shown. But the nodes in the document are actually not moved around❗️
The process of rendering inside their slots is called “composition”.