W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2014

Re: [whatwg] High-density canvases

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 25 Jun 2014 17:09:58 +1200
Message-ID: <CAOp6jLYMEpToBGd++ZZvUSBNUgYcGXqZjriUbb8OoN1+E3QrFg@mail.gmail.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: Stephen White <senorblanco@chromium.org>, Kenneth Russell <kbr@google.com>, Ian Hickson <ian@hixie.ch>, Dean Jackson <dino@apple.com>, WHAT Working Group <whatwg@whatwg.org>
On Wed, Jun 25, 2014 at 3:30 PM, Rik Cabanier <cabanier@gmail.com> wrote:

> Add a new event renderedsizechange to HTMLCanvasElement. This event does
> not bubble and is not cancelable. Whenever the value that would be returned
> by renderedPixelWidth orrenderedPixelHeight changes, queue a task to fire
> renderedsizechange at the HTMLCanvasElement if there is not already a task
> pending to fire such an event at that element.
>
>
> - If there's a transition or animation that affects the canvas element,
> should it receive resize events at 60fps?
>

UA dependent. In practice I would change the renderedPixelWidth/Height
properties whenever Gecko rerasterizes the surrounding CSS content with a
new resolution.


> - will CSS 3D transforms affect the rendered canvas size? If so, what would
> the optimal resolution be if there's a rotation
>

UA dependent. Again, I would change the renderedPixelWidth/Height
properties whenever Gecko rerasterizes the surrounding CSS content with a
new resolution, based on that resolution.


> - what happens if the canvas element is not in the document? Will it just
> return the pixel width/height?
>

UA dependent. I'd probably just leave it unchanged while it's not in the
document (and assume 1 CSS pixel per device pixel if it's never been in a
document with a screen presentation).

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
Received on Wednesday, 25 June 2014 05:10:24 UTC

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