[whatwg] High-density canvases

Robert O'Callahan robert at ocallahan.org
Wed Sep 11 01:20:21 PDT 2013


On Tue, Sep 10, 2013 at 1:26 PM, Rik Cabanier <cabanier at 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.

Rob
-- 
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  *
*



More information about the whatwg mailing list