In ie8 if elements don\'t \'repaint\' with the associated css when you change the classname, how can you force the browser to refresh and not kill ie8 performance?
This
The correct answer to this question is that you need to actually change the content rule.
content
.black-element:before { content:"Hey!"; color: #000;} .red-element:before { content:"Hey! "; color: #f00;}
Notice the extra space I added after Hey! on .red-element
Hey!
.red-element