1 <html xmlns='http://www.w3.org/
1999/xhtml'
>
7 border:
1px solid black;
19 <svg width='
100px' height='
100px' style='padding:
50px' xmlns='http://www.w3.org/
2000/svg'
>
21 <rect id='square' width='
100' height='
100' onclick='alert(
"You clicked the square! It worked!")'
/>
26 if (window
.testRunner
) {
27 testRunner
.dumpAsText();
29 var hitElement
= document
.elementFromPoint(75, 75);
30 var hitSuccess
= hitElement
&& hitElement
== document
.getElementById("square");
31 document
.body
.innerHTML
= hitSuccess
? "PASSED" : "FAIL, hit " + hitElement
+ " @ 50, 50";