webtides / element-js

Simple and lightweight base classes for web components with a beautiful API
MIT License
28 stars 3 forks source link

Nested CEs do not render default content in slots #113

Closed quarkus closed 4 months ago

quarkus commented 6 months ago

eg. "nested-shadow-default-tag" actually contains a template which renders something like: html<slot>DEFAULT</slot>;

class SlottingParentDefaultTag extends TemplateElement {
    template() {
        return html`<nested-shadow-default-tag></nested-shadow-default-tag> `;
    }
}

Expectation: renders "DEFAULT" Reality: renders ""

quarkus commented 6 months ago

i also added one of the tests as a visual test that can be looked at in a browser

screenshot_mh 2024-03-19 um 22 02 23
eddyloewen commented 4 months ago

Has been released with 1.0