[es-dev-server] CustomStyleInterface polyfill is missing
See original GitHub issueWhen serving to legacy browsers, the ShadyCSS.CustomStyleInterface polyfill is not loaded. This means external CSS Variables cannot be used to style elements.
<style>
my-custom-element {
--my-prop: red;
}
</style>
<my-custom-element>
<!-->begin: shadow<-->
<style>
:host {
color: var(--my-prop, blue);
}
</style>
<slot></slot>
<!-->end: shadow<-->
Colour should be red.
</my-custom-element>
<script>
ShadyCSS.CustomStyleInterface.addCustomStyle(document.querySelector('style'));
</script>
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:8 (4 by maintainers)
Top Results From Across the Web
open-wc/es-dev-server - GitHub
You can customize the polyfill loader configuration from your configuration file. Check the docs for the polyfills-loader for all possible options. module.
Read more >es-dev-server - npm
Development server for modern web apps. Latest version: 2.1.0, last published: 2 years ago. Start using es-dev-server in your project by ...
Read more >Can't resolve polyfill packages in project dependencies after ...
This is a non-trivial migration, so it cannot be said that my additions will definitely help, but at least an extra chance.
Read more >Developing Without a Build (2): es-dev-server
In this article, we will look into how we can set up es-dev-server , and how it can help us developing without a...
Read more >ESLint checks for missing polyfills in your web apps ... - Medium
I've seen several Frontend teams who were facing issues related to browser support for some of our features in the past.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
With https://github.com/open-wc/open-wc/pull/1292 there is an option to configure to load this
and it’s released 🎉