Skip to content
This repository was archived by the owner on Sep 14, 2021. It is now read-only.
This repository was archived by the owner on Sep 14, 2021. It is now read-only.

Custom properties declared on :host not being applied #20

@tuespetre

Description

@tuespetre

I've got several elements within a <template> that need to make use of a couple/few custom properties (for coloring, size, etc.) and I've got the defaults for those properties declared on :host:

:host {
    --my-custom-prop: #555;
}

.some-descendant-of-host {
    background-color: var(--my-custom-prop);
}

.another-descendant-of-host {
    background-color: var(--my-custom-prop);
}

Using IE11, the generated style in head has blank values for the background-color properties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions