Compare the two files at 

http://srufaculty.sru.edu/david.dailey/svg/recent/htmlsvgcanvas7a.htm

and

http://srufaculty.sru.edu/david.dailey/svg/recent/htmlsvgcanvas7b.htm 

 

The first merely loads a jpg bitmap into a <canvas> and an SVG file into an
<embed> (I was using <img> instead, but some browsers seemed unhappy with me
for that)

 

When the button is pushed, a part of the canvas is read as a pixel array,
manipulated and then redisplayed. It works just fine in IE9, Opera, FF4,
Safari, Chrome.

 

In the second file, two small differences: a)the file read into the canvas
is the same SVG as that in the embed, b) an alert is popped up to show the
src of the image object, once loaded into the browser, but prior to writing
into the canvas.

 

No browser seems to pass this simple test.

 

a)      IE loads the SVG into the img, displays it in the canvas, but
refuses to manipulate the pixel array

b)      Safari loads the SVG into the img, displays it in the canvas (but
without antialiasing), and refuses to manipulate the pixel array

c)       Ditto for Chrome

d)      Firefox loads the SVG into the img, but doesn't display it or allow
pixel manipulation.

e)      Opera doesn't load the SVG into the img.

 

I think I'd rather just add this to the acid test suite than to file five
separate bug reports. Heck, I'm too lazy for even that. Maybe I'll just add
it to my own private set of Cool tests (not having to do with Ken Kesey or
Ian Hickson). Of course, I suppose it is possible that the spec specifically
allows browsers to give up at different points along this progression, since
it is probably clear that I am up to no good!

 

Cheers

David



[Non-text portions of this message have been removed]



------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to