1 <html xmlns='http://www.w3.org/
1999/xhtml'
>
2 <body style=
"margin: 0px; padding: 0px">
4 <svg xmlns=
"http://www.w3.org/2000/svg" style=
"position:absolute;">
7 <style type=
"text/css"><![CDATA
[
12 stroke-linecap: square
;
15 rect#
strokedRect:hover
{
21 <rect id=
"fallback" x=
"0" y=
"0" width=
"210" height=
"210" fill=
"green" onclick=
"passed()"/>
22 <rect id=
"strokedRect" x=
"10" y=
"10" width=
"190" height=
"190" pointer-events=
"visibleStroke" onclick=
"failed()"/>
23 <text id=
"text" x=
"0" y=
"230"></text>
25 <script type=
"text/ecmascript">
28 var fallback = document.getElementById(
"fallback");
29 var strokedRect = document.getElementById(
"strokedRect");
30 var text = document.getElementById(
"text");
32 fallback.addEventListener(
"mousedown", passed, false);
33 strokedRect.addEventListener(
"mousedown", failed, false);
36 fallback.removeEventListener(
"mousedown", failed, false);
37 strokedRect.removeEventListener(
"mousedown", passed, false);
39 if (window.testRunner)
40 testRunner.notifyDone();
44 text.textContent = 'FAILED: strokeRect had pointer';
49 text.textContent = 'PASSED: fallbackRect had pointer';
53 if (window.testRunner) {
54 testRunner.waitUntilDone();
55 testRunner.dumpAsText();
58 if (window.eventSender) {
59 eventSender.mouseMoveTo(
1,
1);
60 eventSender.mouseDown();