W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2010

[whatwg] Processing the zoom level - MS extensions to window.screen

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 22 Nov 2010 13:56:27 +1300
Message-ID: <AANLkTimfU4jFV+LcFaf5BsT4CRsLp9pwzcgeqdsDY+PB@mail.gmail.com>
On Mon, Nov 22, 2010 at 1:40 PM, Charles Pritchard <chuck at jumis.com> wrote:

> I would point out that the MS proposal has an independent X and Y scaling
> mechanism.
>

Does anyone know of any modern displays which have different X and Y
resolution?


> I believe that dpi ratio is simply set to "2" (or .5... sorry a bit rusty)
> on the iOS 4 retina display.
>

There will be cases where zooming doesn't change device-pixel-ratio. Mobile
browsers tend to have a "fast" zoom out which doesn't change the layout
(mostly), and that might not change device-pixel-ratio. I think that's OK
for your use cases as long as device-pixel-ratio reports the ratio as if the
page is "zoomed in".

Rob
-- 
"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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20101122/ce2900cb/attachment.htm>
Received on Sunday, 21 November 2010 16:56:27 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:28 UTC