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

Support fetching DPI #65

Closed
zeeshanjan82 opened this issue Aug 22, 2015 · 2 comments
Closed

Support fetching DPI #65

zeeshanjan82 opened this issue Aug 22, 2015 · 2 comments

Comments

@zeeshanjan82
Copy link

I wish there could be some way I could get the DPI of the screen, I have a requirement where the user will define the dimensions of the buttons on my web page in cm/mm and I need to display them in these dimensions but as far as I have read I need to have the DPI of the screen in order to convert cm/mm into pixels.

@zeeshanjan82
Copy link
Author

LeaVerou/dpi#132

@benschwarz
Copy link
Collaborator

If a regular media query can't do it, then matchMedia won't either — matchMedia serves only as a polyfill to browsers that do not support the matchMedia JS API.

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

2 participants