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

Robert O'Callahan robert at ocallahan.org
Sun Nov 21 22:51:14 PST 2010

On Mon, Nov 22, 2010 at 6:22 PM, Charles Pritchard <chuck at jumis.com> wrote:

> I've a deep and detailed understanding of the SVG, HTML, DOM and CSS specs.

Just out of interest, why aren't you using SVG?

I understand the need to make canvas backing store pixels map to device
pixels when possible. Suppose that, on clearing the canvas (e.g. by setting
the width or height attribute), the browser automatically set the canvas
backing store density so that canvas backing store pixels map to device
pixels (taking into account the current zoom settings). Suppose further that
browsers fired the 'resize' event when they zoom in a way that changes the
window size (as they should, even if they currently don't). Then on 'resize'
you could clear your canvas and redraw it, and automatically get a canvas
backing store with the right resolution with no further code changes. Would
that address your use case?

"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/2d9d7e1e/attachment-0002.htm>

More information about the whatwg mailing list