Europace - behind the scenes
  • Home
  • Impressum
  • Datenschutz

browser-support

Einblicke, Gedanken, Ideen, Veranstaltungen unserer Kollegen, die Europace entwickeln

angularjs

How to cause IE 8 to redraw pseudo elements on class change

Yesterday I spent the entire day trying to narrow down a nasty CSS bug that only surfaced in Internet Explorer 8. Everyones favourite browser didn’t redraw a pseudo element created via :before when its style got changed by adding or removing a class via JavaScript. It was a custom checkbox element with a JavaScript click handler that simply toggled a class on every click. Getting to the bottom of it Here is a jsFiddle with a trimmed down version of said checkbox.

  • Daniel Bechler
Daniel Bechler 2 October 2013 • 3 min read
Europace - behind the scenes © 2013
Latest Posts Twitter Hugo Casper3 by Jonathan Janssens