scottjehl / Device-Bugs

Just a collection of quirks and issues that occur on browser platforms (particularly those unlikely to update)
864 stars 19 forks source link

SVG graphic all black in Internet Explorer (IE) 11 #74

Open scottjehl opened 7 years ago

scottjehl commented 7 years ago

If an SVG ever looks solid black in IE11 or older, it’s likely that it contains a <style> element and the rules aren’t applying when the svg is dynamically used...

A solution is to move the styles into attributes

Before: image

After: image

Mouvedia commented 7 years ago

http://meta.stackoverflow.com/q/340293/248058