Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't works without "screen" in query #10

Open
fspezi opened this issue Nov 29, 2012 · 4 comments
Open

Don't works without "screen" in query #10

fspezi opened this issue Nov 29, 2012 · 4 comments

Comments

@fspezi
Copy link

fspezi commented Nov 29, 2012

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) {
    ...
}
@livingston
Copy link
Owner

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

@joshua-chavanne
Copy link

This was the most important thing I found here today!

@knightdr
Copy link

@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

@joshua-chavanne
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants