[whatwg] High-density canvases
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:
> It's been in firefox for a while and blink is going to ship it soon:
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
> > > 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 *
More information about the whatwg