[whatwg] SVG extensions to <canvas>

Anne van Kesteren annevk at opera.com
Sat Oct 27 13:18:24 PDT 2007


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
<http://annevankesteren.nl/>
<http://www.opera.com/>



More information about the whatwg mailing list