[whatwg] SVG extensions to <canvas>
Anne van Kesteren
annevk at opera.com
Tue May 19 15:51:23 PDT 2009
On Wed, 06 May 2009 22:16:50 +0200, Oliver Hunt <oliver at apple.com> wrote:
>> That <svg> hasn't got intrinsic sizes, so it cannot be rendered on a
>> canvas. This doesn't preclude the use of <svg> with intrinsic sizes,
>> that are given only by width/height attributes on <svg>.
>
> That's really really bad, as that means sometimes drawing you svg will
> work, and sometimes it won't. That's why it's a bad API.
That's not quite what we implemented (and proposed) though. In case there
is no intrinsic size you'd just fall back to a default size. I.e. similar
to how <img>, <iframe>, etc. work.
--
Anne van Kesteren
http://annevankesteren.nl/
More information about the whatwg
mailing list