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

Re: [mediaqueries] resolution and device-pixel-ratio

From: Robert O'Callahan <robert@ocallahan.org>
Date: Sat, 23 Nov 2013 12:22:16 +1300
Message-ID: <CAOp6jLbkRouDS7T8u2Z0-EE=zTeZ-808weLrnmOarjazkwf6yA@mail.gmail.com>
To: Dean Jackson <dino@apple.com>
Cc: Maciej Stachowiak <mjs@apple.com>, Rik Cabanier <cabanier@gmail.com>, Jonathan Kew <jfkthame@googlemail.com>, www-style list <www-style@w3.org>
For best results an 8-bit game emulator should be drawing into a canvas
sized to the game's original size as designed, and then scaling that to a
rendering canvas whose pixels match device pixels as closely as possible,
using a custom scaling algorithm designed for scaling pixel art. (See

For the former step, the canvas backing store size is fixed and does not
depend on zoom ratios in any way. For the latter step, using a zoom ratio
that includes page zoom is better than using one that doesn't (even if the
rendering canvas's buffer size is required to be an integer multiple of the
game canvas).

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 Friday, 22 November 2013 23:22:44 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:34 UTC