Skip to content

host style requires CSP with style-src 'unsafe-inline' #109

@jdanyow

Description

@jdanyow

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'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions