W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2010

[whatwg] Canvas size and double buffering.

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 03 Feb 2010 18:16:58 -0500
Message-ID: <4B6A03EA.7030802@mit.edu>
On 2/3/10 6:12 PM, Tim Hutt wrote:
> Ah yes that works nicely, with one minor caveat: it seems to include
> the width of the border if there is one, so you have to take that into
> account. You're right, this is a better solution.

Ah, yes.  Padding too.   You could instead ask for the computed style 
width, but I'm not sure whether that does what it does in Gecko (return 
the actual used width) in all browsers.

It might be good to create some APIs to query these sorts of box 
properties.  Anne, are you on this list, by chance?  ;)

Received on Wednesday, 3 February 2010 15:16:58 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:20 UTC