W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2007

[whatwg] SVG extensions to <canvas>

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 27 Oct 2007 22:18:24 +0200
Message-ID: <op.t0vhcyw564w2qv@annevk-t60.oslo.opera.com>
On Sat, 27 Oct 2007 15:44:39 +0200, Vlad Alexander (xhtml.com)  
<vlad.alexander at xhtml.com> wrote:
> Any application that does a thumbnail preview of an SVG image must scale  
> the image. If it's okay to scale images for thumbnail previews, why is  
> it not okay for scaling inside the IMG or OBJECT element?

I think I understand what behavior you desire. However, it's not entirely  
clear to me that what Opera is wrong given that your example has an  
intrinsic width of a 100% (which is overridden with 300px if I understand  
all the algorithms correctly; I probably don't).

I think that's one of the reasons it's simply gets clipped instead of  
scaled. (And clipping is a feature too, keep that in mind.)

Anne van Kesteren
Received on Saturday, 27 October 2007 13:18:24 UTC

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