W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2013

Re: [whatwg] High-density canvases

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 11 Sep 2013 01:20:21 -0700
Message-ID: <CAOp6jLZFD_HVKgEfEUB0myCdvz60i_=1NASVQ-YKyzcHxkDxVw@mail.gmail.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: Ian Hickson <ian@hixie.ch>, Dean Jackson <dino@apple.com>, Stephen White <senorblanco@chromium.org>, WHAT Working Group <whatwg@whatwg.org>
On Tue, Sep 10, 2013 at 1:26 PM, Rik Cabanier <cabanier@gmail.com> wrote:

> There's a thread on www-style:
> http://lists.w3.org/Archives/Public/www-style/2012Nov/0144.html
> It's been in firefox for a while and blink is going to ship it soon:
> https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/RyUSi3zdumQ

devicePixelRatio has reflected page zoom in Firefox ever since we first
exposed it (because the thing it maps to internally has always been
affected by page zoom).

> > > Actually what I really think we should do is also change the
> > > window.devicePixelRatio for pinch zoom. Combined with the suggestions
> for
> > > canvas, that would allow (as Rik pointed out on IRC) for high-quality
> > > canvas all the way zoomed in, and for cheap canvases when zoomed out
> I believe pinch zoom should not change devicePixelRatio. It would be nice
> if there was a standard way to determine pinch zoom though and if the
> canvas could automatically resize.

Pinch-zoom is hard because we don't want to trigger reflows or other
expensive behavior on pinch-zoom. I'd leave pinch-zoom out of it for now.

Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w  *
Received on Wednesday, 11 September 2013 08:20:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:09 UTC