W3C home > Mailing lists > Public > www-style@w3.org > November 2012

Re: Behavior of device-pixel-ratio under zoom

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 12 Nov 2012 04:15:40 -0500
Message-ID: <CAOp6jLZrOox8Qx-NpY=5WzcAmzdNr1h=gxmY1MVVbGSoKGzZRA@mail.gmail.com>
To: Simon Fraser <smfr@me.com>
Cc: "L. David Baron" <dbaron@dbaron.org>, www-style <www-style@w3.org>
I agree with David and Rune, if that wasn't already clear.

On Sun, Nov 11, 2012 at 7:13 PM, Simon Fraser <smfr@me.com> wrote:

> We (Apple) feel quite strongly that device-pixel-ratio, like
> window.devicePixelRatio,
> should not change under zoom. It's answering a question about the device
> hardware,
> not the current zoom state of the page.
>
> I think in general authors should not be able to directly affect the
> layout of the page
> under different zoom levels. Zooming should shouldn't have unsurprising
> side effects
> for the user.
>

For years Firefox has supported a zoom mode that does relayout the page (by
changing the viewport size in CSS pixels). I believe Safari has supported
something similar.

I'm asking whether *that* kind of zoom should affect devicePixelRatio and
device-pixel-ratio.

Rob
-- 
Jesus called them together and said, “You know that the rulers of the
Gentiles lord it over them, and their high officials exercise authority
over them. Not so with you. Instead, whoever wants to become great among
you must be your servant, and whoever wants to be first must be your
slave — just
as the Son of Man did not come to be served, but to serve, and to give his
life as a ransom for many.” [Matthew 20:25-28]
Received on Monday, 12 November 2012 09:16:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:02 GMT