Is there another way to style the host as block without an inline style? Or could there be a mechanism for the host page to control the insertion of this style?
|
const style = document.createElement('style') |
|
style.textContent = `:host {display: block;}` |
|
this.shadowRoot!.append(style, document.createElement('slot')) |