anselmh / object-fit

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

Does not respond to height set inside media queries. #34

Open simonerlandsen opened 9 years ago

anselmh commented 9 years ago

Hey, can you please give me a more detailed description, ideally with a code snippet on how you use it and how it should behave and how it behaves?

simonerlandsen commented 9 years ago

Hello. When an image height is set initially in css, and then changed inside of a media query later on in the css, the new height is not set on the image (or rather the image wrapper) on window resizing. Tested in IE.

http://codepen.io/anon/pen/vOWpdj

anselmh commented 9 years ago

Thanks, I’ll investigate as soon as possible. Which IE have you tested on?

simonerlandsen commented 9 years ago

Thanks! Tested in IE 10 and IE 11 (in IE 9 the image doesn't show, as reported on another issue).