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

Use constructable stylesheets for element styling #1

Open
trusktr opened this issue May 10, 2020 · 2 comments
Open

Use constructable stylesheets for element styling #1

trusktr opened this issue May 10, 2020 · 2 comments
Labels
good first issue Good for newcomers

Comments

@trusktr
Copy link
Member

trusktr commented May 10, 2020

This is a more performant way to share a common styling across instances of a custom element. Not all browsers support it yet, and the API may change a little before the spec settles.

Explainer: https://developers.google.com/web/updates/2019/02/constructable-stylesheets

Polyfill: https://github.com/calebdwilliams/construct-style-sheets

@trusktr trusktr added the good first issue Good for newcomers label Nov 10, 2020
@trusktr
Copy link
Member Author

trusktr commented Nov 21, 2023

Safari supports this out of the box now, time to implement this!

@trusktr
Copy link
Member Author

trusktr commented Apr 8, 2024

Related: when we implement this,

will not apply while styles are adopted (behaves similar to appending to end of ShadowRoot).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant