paulirish / matchMedia.js

matchMedia polyfill for testing media queries in JS
MIT License
2.37k stars 291 forks source link

Using respond.js and doing window.matchMedia() always returns false in IE8 #53

Closed empz closed 10 years ago

empz commented 10 years ago

I'm calling window.matchMedia("(min-width: 640px)").matches; in IE8 with a 1024x768 resolution and browser maximied and I'm getting false. I thought this script was to add matchMedia support in IE8, but unless I'm missing something, it doesn't.

UPDATE: respond.js seems to be using and old version of matchMedia...