<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
window.dpiPixelRatio does not change.<br>
<br>
Is it mozDpiPixelRatio ?<br>
<br>
<br>
<br>
On 11/24/2010 1:12 AM, Robert O'Callahan wrote:
<blockquote
cite="mid:AANLkTim8QgOcWsOm8edtVmXqRWh=rpJaML78q2xo3z4r@mail.gmail.com"
type="cite">On Wed, Nov 24, 2010 at 9:09 PM, Charles Pritchard <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:chuck@jumis.com">chuck@jumis.com</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
<div class="im"> On 11/21/2010 4:12 PM, Robert O'Callahan
wrote:
<blockquote type="cite">On Sun, Nov 21, 2010 at 9:59 AM,
Charles Pritchard <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:chuck@jumis.com"
target="_blank">chuck@jumis.com</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt
0pt 0.8ex; border-left: 1px solid rgb(204, 204,
204); padding-left: 1ex;"> Rob: Mobile deployments
using dpiPixelRatio (as has been adopted by Moz and
Webkit) and target-DpiDensity work well on the
mobile, they are not hooked to zoom on the desktop,<br>
</blockquote>
<div><br>
It is in Firefox.<br>
</div>
</div>
</blockquote>
</div>
I just tested in 4b7, and it's not changing dpiPixelRatio.<br>
</div>
</blockquote>
<div><br>
Try this:<br>
<style><br>
div { display:none; }<br>
@media screen and (min--moz-device-pixel-ratio: 1.5) {<br>
.in { display:block; }<br>
}<br>
@media screen and (max--moz-device-pixel-ratio: 0.66666666) {<br>
.out { display:block; }<br>
}<br>
</style><br>
<div class="in">Zoomed in by a factor of at least
1.5</div><br>
<div class="out">Zoomed out by a factor of at least
1.5</div><br>
<br>
Try zooming in a lot and zooming out a lot. It works for me.<br>
<br>
</div>
Rob<br>
</div>
-- <br>
"Now the Bereans were of more noble character than the
Thessalonians, for they received the message with great eagerness
and examined the Scriptures every day to see if what Paul said was
true." [Acts 17:11]<br>
</blockquote>
<br>
</body>
</html>