css3-mediaqueries-js
css3-mediaqueries-js copied to clipboard
Don't works without "screen" in query
I discovered that "css3-mediaqueries" works only when the query contains "screen".
This query don't works:
@media (max-width: 460px) {
...
}
This query works properly:
@media screen and (max-width: 460px) {
...
}
Can you fork, patch and make a pull request, so that we can fix it?
This was the most important thing I found here today!
@joshua-chavanne
If you need an alternative to this project, try https://github.com/weblinc/media-match or https://github.com/paulirish/matchMedia.js
Good luck
Thank you for the suggestion, but this unexpected behavior was the issue - css3-media-queries.js is working fine for my project for the time being, but I will check out those projects as well.