[whatwg] Canvas size and double buffering.

Boris Zbarsky bzbarsky at MIT.EDU
Wed Feb 3 15:16:58 PST 2010


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?  ;)

-Boris



More information about the whatwg mailing list