Skip to content

fix(fast-html): TemplateElement-derived elements are rendered in the DOM #7148

@radium-v

Description

@radium-v

🐛 Bug Report

The <f-template> element renders as a 0-width box in the DOM.

💻 Repro or Code Sample

https://stackblitz.com/edit/vitejs-vite-xaylxldx?file=src%2Fmain.ts

🤔 Expected Behavior

The <f-template> itself should not be rendered in the DOM.

😯 Current Behavior

An outline is applied to the <f-template> element, showing how the element is being rendered in the DOM:
Image

💁 Possible Solution

The TemplateElement should have its own embedded styles to set display: none, so it doesn't render by default.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions