[whatwg] Why can't ImageBitmap objects have width and height attributes?

Justin Novosad junov at google.com
Mon Jul 15 13:54:05 PDT 2013

Hi all,

We've recently started implementing ImageBitmap in Blink.  While writing
tests, we quickly realized that it is quite anoying that ImageBitmaps are
completely opaque objects.  When converting animation tests that used to
use image elements over to using ImageBitmaps, we're ending up having to
pass triplets (ImagBitmap, width, height) where we used to just have an

It would be much more convenient if ImageBitmaps exposed their width and
height in pixels as read-only attributes.  I don't see any technical reason
why we couldn't do that.  Am I missing something?



More information about the whatwg mailing list