question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

does not work in IE11

See original GitHub issue

Hello

I installed your package in my app but in IE11 the css variables are not beeing used

my angular scss file

:root
{
	--primary-color:blue;
}

my component css

...
background-color: var(--primary-color);

it works in chrome,

do I have to do something extra to make it work in IE11 ? include something ?

regards

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Phil147commented, Jun 6, 2019

I think the better spot to place the ponyfill is in the polyfills.ts of your angular project. The ponyfill doesn’t have to run in your applications lifecycle, in fact I think it is even better if the css vars ponyfill is set up before angular starts running.

We have an application running this way which works perfectly fine on IE11. Don’t forget other necessary polyfills for IE11 for angular.

Our config:

cssVars({
   onlyLegacy   : true,
   shadowDOM: true,
   watch: true,
   updateURLs: false
 });
1reaction
jhildenbiddlecommented, Jul 22, 2020

@iamdevlinph

The ponyfill has been thoroughly tested and works in IE 11. If you are having issues, consider opening a new issue with either working demo or a more complete configuration copy/pasted here for review.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internet Explorer has stopped working - Microsoft Support
Internet Explorer has stopped working · Open Internet Explorer and select Tools > Internet options. · Select the Advanced tab, and then select...
Read more >
Does not work for IE11 | WordPress.org
I have the premium version of your plugin and it doesn't work with another plugin “Contact Form 7 Conditional Fields”. If I disable...
Read more >
8 Most Common Internet Explorer Issues (And Easy Ways to ...
1. Internet Explorer Is Not in Active Development · 2. Basic Internet Explorer Troubleshooting: Updates Not Installed · 3. Can't Find Internet ...
Read more >
Do accessible websites still need to support Internet Explorer ...
Here are some of the issues with IE11 as currently seen by web developers… 1. Support for newer stylesheet properties. When building websites, ......
Read more >
addEventListener does not work in IE 11 - Stack Overflow
This error indicates, that IE11 is not supporting the method... enter image description here. Is there a simple workaround to make this work?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found