css3-mediaqueries-js icon indicating copy to clipboard operation
css3-mediaqueries-js copied to clipboard

Don't works without "screen" in query

Open fspezi opened this issue 12 years ago • 4 comments

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) {
    ...
}

fspezi avatar Nov 29 '12 08:11 fspezi

Can you fork, patch and make a pull request, so that we can fix it?

livingston avatar Dec 02 '12 17:12 livingston

This was the most important thing I found here today!

joshua-chavanne avatar Jul 19 '13 01:07 joshua-chavanne

@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

knightdr avatar Jul 19 '13 02:07 knightdr

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.

joshua-chavanne avatar Jul 19 '13 02:07 joshua-chavanne