W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2009

[whatwg] SVG extensions to <canvas>

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 20 May 2009 00:51:23 +0200
Message-ID: <op.ut68fxxp64w2qv@anne-van-kesterens-macbook.local>
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/
Received on Tuesday, 19 May 2009 15:51:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:49 UTC