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.

Not working in IE10

See original GitHub issue

The polyfill docs say IE9+ is supported, but it doesn’t seem to be working on IE10. IE11 works fine. I’ll post an example below. Can someone let me know if I’m doing something wrong or missing anything? Thanks!

Doesn’t seem possible to view a JSFiddle or CodePen using IE. So follow the steps below to recreate the issue.

  1. Open IE
  2. Go to https://htmledit.squarefree.com/
  3. Open dev-tools and emulate IE10
  4. Paste the following code
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@1"></script>

<script>
// Call the polyfill
cssVars()
</script>

<style>
:root {
  --color-red: red;
  --color-blue: blue;
}

.testing-red {
  color: var(--color-red)
}
.testing-blue {
  color: var(--color-blue)
}
</style>

</head>

<body>
    <div class="testing-red">Hello World - Red</div>
    <div class="testing-blue">Hello World - Blue</div>
</body>

</html>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jhildenbiddlecommented, Apr 5, 2019

Correct. That’s what the IE10 window was meant to communicate. 😄

1reaction
jhildenbiddlecommented, Apr 5, 2019

You bet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IE10 Why is javascript not working? - Microsoft Community
Method 1: I would suggest you to verify that Active Scripting, ActiveX, and Java are not being blocked by Internet Explorer · Note...
Read more >
CSS flexbox not working in IE10 - Stack Overflow
This works fine in Chrome and Firefox. Please note that flex items should be display:block; in IE10. Use autoprefixer.
Read more >
Not working in IE10 · Issue #277 · Splidejs/splide - GitHub
Hi! First of all, awesome slider. I've tried a lot of different ones, but like this one very much. Lots of options, keep...
Read more >
Header Menu or Sidebar Not Working in IE10 and IE11
Are you using "preview" mode in your HTML software? Try opening your IE browser first then go to the problem webpage. Try emptying...
Read more >
Right Click not working in IE10 - Articulate Storyline Discussions
The published version is on an company LMS (staging server), so it should work. The problem only occurs with IE 10 (I don't...
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