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

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

From: Simon Fraser <smfr@me.com>
Date: Sat, 20 Nov 2010 09:49:55 -0800
Message-ID: <C430310B-34DF-4C1D-98DC-16CA2732FBF1@me.com>
On Nov 20, 2010, at 7:46 AM, Ojan Vafai wrote:

> On Fri, Nov 19, 2010 at 9:21 PM, Robert O'Callahan <robert at ocallahan.org> wrote:
> Most of the use cases for script access to the exact device pixel ratio that I've heard boil down to "interfere with the user's ability to zoom", which is why I haven't been eager to make it easier.
> To be clear, chrome.tabs.getZoomPercentage is a Chrome extension API. Having extensions that can mess with zoom seems like a legit use-case. But I agree, I can't think of good use-cases for the general web being able to.

The only one I can think of is sizing the canvas backing store to get a sharp image on high-resolution displays, and possibly swapping in different image assets from JS.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20101120/a9c96118/attachment.htm>
Received on Saturday, 20 November 2010 09:49:55 UTC

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