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

Re: Behavior of device-pixel-ratio under zoom

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 13 Nov 2012 17:21:41 -0800
Message-ID: <CAAWBYDA7KhbQ7q-H55PgCiGmABc47n_BAPSrcpKw5K9Jdf7nmA@mail.gmail.com>
To: "Robert O'Callahan" <robert@ocallahan.org>
Cc: Simon Fraser <smfr@me.com>, "L. David Baron" <dbaron@dbaron.org>, www-style <www-style@w3.org>
On Tue, Nov 13, 2012 at 2:40 PM, Robert O'Callahan <robert@ocallahan.org> wrote:
> On Tue, Nov 13, 2012 at 11:47 AM, Tab Atkins Jr. <jackalmage@gmail.com>
> wrote:
>> Like others, I feel strongly that *that* kind of zoom should affect
>> dPR and d-p-r.  (Perhaps we should call it "rescale", to separate it
>> from the related-only-thematically "zoom" operation that mobile
>> devices do?)
>> I suspect that Simon's statements are about "zoom", not "rescale", and
>> that he (and Apple in general) are fine with rescaling affecting dPR.
>> In any case, it appears that FF and IE both change dPR when you
>> "rescale", so that's the behavior we should go with.
> Great. Can you check that Chrome does the right thing? We don't want compat
> problems to arise here, and we've already seen some pages that are making
> some questionable assumptions.

As far as I can tell, we do the wrong thing.  When I Ctrl-+ my way to
maximum "zoom" (really "rescale", I think) on my desktop (such that
<body> reports its width as being 272px wide instead of 1424px),
window.dPR still returns 1.

Received on Wednesday, 14 November 2012 01:22:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:23 UTC