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

min/max-device-width/height #3530

Open
tisdall opened this Issue Jun 21, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@tisdall

tisdall commented Jun 21, 2017

I can't seem to find any details on [min|max]-device-[width|height]. It matches the javascript values of screen.width and screen.height.

Here's some information on the CSS media query: https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries#device-width

And here's some compatibility data for screen.width and screen.height which appears to match the CSS media values: https://www.quirksmode.org/mobile/tableViewport.html#t00

W3C info: https://www.w3.org/TR/mediaqueries-4/#mf-deprecated

I was looking into it because max-device-width in Android's built in web view seems to match physical pixels while in Chrome it matches CSS pixels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment