[whatwg] Canvas size and double buffering.

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

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