« Call for testing: textPath | Main | Call for testing: filters »
August 26, 2005
Call for testing: SVG events
We've recently landed the patch for bug 302103 to implement SVG events on the trunk. Before we can land this patch on the Firefox 1.5 branch we need to test that everything works as expected. If you have time, please download a current Firefox nightly build and help us test. Things to test include the onload, onzoom, and onscroll attributes (and add/removeEventListener for SVGLoad, SVGZoom, and SVGScroll); that changes to currentScale and currentTranslate fire the correct events, and that these events contain the correct information; that no regressions have occured in the rest of the event code; that there are no issues concerning security stuff like event synthesis, crossing window boundaries, etc.
We have two testcases you can run, but others would be welcome:
Be careful when testing the second testcase not to triple-click or you'll crash due to unrelated bug 306049.
Ideally please comment in bug 302103 with your success/failure results. If you don't have a bugzilla account then add a comment to this blog entry.
Posted by tor at August 26, 2005 6:03 PM
Comments
I am running it on my mac right now, I ran the two test cases. They both appear to work, though there was a difference in the first one between it and the test case attached to bugzilla.
On the jwatt.org svg-events.svg I get a white rectangle (page?) to the running the length of the left side of the SVG when it is zoomed in. For the similar test case in Bugzilla (https://bugzilla.mozilla.org/attachment.cgi?id=192078) I don't. I shift-clicked and meta-clicked on the the zoom link also, and the shiftKey and metaKey always showed up as undefined (everything under "Context Info" - clientX to metaKey).
I hope this helps. If you want more information, feel free to ask. I've been waiting for this for a long time! Keep up the good work!
Posted by: npow at August 27, 2005 1:11 AM
Both worked fine for me!
Using:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050826 Firefox/1.0+ ID:2005082608
Steven
Posted by: StevenVA at August 27, 2005 10:02 AM
hi,
i thought svg events had been working for some time!
anyway, inside xul, right/middle click mouse events only seem to be handled by onclick at the top svg element. directly in the browser middle and right clicks are intercepted by the browser. left click events work as expected (and there are still the known problems with "use").
don't know if that is of any use.
cheers,
andrew
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20050828 Firefox/1.6a1
Posted by: andrew cooke at August 28, 2005 11:05 PM
sorry - should probably have been clearer. when using svg embedded in an iframe inside a xul window, middle and right mouse clicks are only handled when onclick is placed in the top svg, as far as i can tell.
Posted by: andrew cooke at August 28, 2005 11:09 PM
Why can inline SVG elements not have borders or background colours? I'm also currently trying to use it with the DragDrop script from http://script.aculo.us/ but it won't drag. Why does the SVG element not have an offsetX and offsetY?
Posted by: hemebond at September 9, 2005 8:24 AM
I'm playing with maps in SVG and need zoom and pan. I'm having a problem - probably me - with a variation of one of the tests here. See: http://www.the325project.org/SVG/Tests/Transformations/zoom-and-pan-controlsViewBox.svg. This specifies a viewbox of 1000 by 600 for the SVG and with this change, panning moves the zoom and pan control: reversing the transformation in the zoom control doesn't seem to work. I can't see why. Any ideas?
Posted by: conor at September 19, 2005 12:50 AM
Firefox 1.5 beta 1 on Win XP Home Ed SP2
Both testcases work perfectly with no crash om "trippel clic" or as fast as I could multi clicks.
Sorry, no bugs ;-)
Posted by: Bertil at October 7, 2005 12:39 AM