anselmh / object-fit

Polyfill (mostly IE) for CSS object-fit property to fill-in/fit-in images into containers.
MIT License
996 stars 92 forks source link

IE9 issues #23

Open anselmh opened 9 years ago

anselmh commented 9 years ago

IE9 shows a bit weird behavior. While it does apply the tags it sucks at maintaining the styles and then cuts the image dimensions in a completely wrong way.

This might be because we’re not using currentStyle (which is non-standard and has very ugly issues) for getting and setting the styles.