Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply cssResult to instance of an element #632

Closed
bennypowers opened this issue Mar 24, 2019 · 2 comments
Closed

Apply cssResult to instance of an element #632

bennypowers opened this issue Mar 24, 2019 · 2 comments

Comments

@bennypowers
Copy link
Contributor

Description

I'd like to be able to apply a cssResult to an instance of an element, not to the class. An example use case would be dynamic css with unsafeCSS

// imaginary API
this.applyStyleResult(css`${unsafeCSS(this.generateSomeDynamicStyles())}`);

Slack reference: https://polymer.slack.com/archives/C03PF4L4L/p1552653870035900

@kevinpschaaf
Copy link
Member

kevinpschaaf commented May 23, 2019

Just noting that the main issue with this would be polyfilled Shadow DOM support, since ShadyCSS currently does not have good support for generic instance-time styling (outside of the CSS custom properties shim).

@sorvell
Copy link
Member

sorvell commented Jul 14, 2022

Closing in favor of lit/lit#3010.

@sorvell sorvell closed this as completed Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants