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

Custom properties declared on :host not being applied #20

Closed
tuespetre opened this issue Nov 1, 2016 · 1 comment
Closed

Custom properties declared on :host not being applied #20

tuespetre opened this issue Nov 1, 2016 · 1 comment

Comments

@tuespetre
Copy link

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.

@tuespetre
Copy link
Author

Heads up, I am working on this right now.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant