simulate DPI #359

Open
ztamizzen opened this Issue Mar 7, 2013 · 5 comments

Projects

None yet

3 participants

@ztamizzen

It would be nice to be able to change some settings, like resolution, orientation and DPI.
Actually that is what I want to be able to change.
I know it's possible if you run the simulator manually but I can't get it to work.

@nickdesaulniers
Collaborator

Orientation just landed. Update to 3.0pre2

@ztamizzen

To be found here? http://ftp.mozilla.org/pub/mozilla.org/labs/r2d2b2g/

It works 👍

Now for resolution and DPI! 💃

@mykmelez
Member
mykmelez commented May 3, 2013

Resolution is #272. So let's focus this issue specifically on DPI! However, I don't understand the use case well enough. Can someone explain how DPI typically varies between the kinds of devices FxOS is targeting, what DPI values we'll want to support, and how a DPI simulation might present itself to developers?

@nickdesaulniers
Collaborator

I don't know too much about DPI and devices, but it might be important since most apps don't look quite right on Peaks. window.matchMedia and -moz-device-pixel-ratio might be able to help, but I cannot in good faith suggest anything that's been vendor prefixed.

@ztamizzen

I think https://developer.mozilla.org/en-US/docs/CSS/resolution is preferred, using it with "dppx".
A high resolution display has 1.5dppx and or higher.

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