customElements.define('my-component', class extends HTMLElement {
constructor() {
super()
let shadowRoot = this.attachShadow({mode: 'open'});
shadowRoot.innerHTML = `<slot><div class="default">default content</div></slot>`
}
})
The default content is actually not shown, because there is a text node (the empty space) as a child node of the element. Kagekiri should handle this properly.
In this scenario:
The default content is actually not shown, because there is a text node (the empty space) as a child node of the element. Kagekiri should handle this properly.