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

Simon Fraser smfr at me.com
Sat Nov 20 09:49:55 PST 2010


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.

Simon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20101120/a9c96118/attachment-0002.htm>


More information about the whatwg mailing list