1 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg11.dtd">
2 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink">
3 <title id=
"viewer_title">Mouse Over the Red Dot And Wait For the Crash
</title>
5 <circle id=
"rim" cx=
"0" cy=
"0" r=
"70"/>
7 <use id=
"useRim" xlink:
href=
"#rim" fill=
"#e33c31">
13 <use id=
"zoomplus" xlink:
href=
"#loupePlus" x=
"300" y=
"300" >
15 <foreignObject><pre id=
"console" xmlns=
"http://www.w3.org/1999/xhtml"/></foreignObject>
18 if (window.eventSender) {
19 eventSender.dragMode = false;
20 eventSender.mouseMoveTo(
300,
300);
21 eventSender.mouseDown();
22 eventSender.mouseUp();
25 // If you like, you can make a crash.
28 var console = document.getElementById(
"console");
29 function print(string)
31 console.textContent += string;
34 function printInstanceTree( obj, indent )
39 print(
" id = " + obj.id);
41 print(
" this = " + obj +
"\n");
42 for (var m = obj.firstChild; m != null; m = m.nextSibling ) {
43 printInstanceTree(m, indent);
46 var zoomplus = document.getElementById(
"zoomplus");
47 // Force a recalcStyle so the use shadow tree is created.
48 getComputedStyle(zoomplus).color;
49 var useobj = internals.shadowRoot(zoomplus);
50 print(
"The instance tree of use element zoomplus:\n");
51 printInstanceTree(useobj,
"");
53 if (window.testRunner){
54 testRunner.dumpAsText();