Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / css / cursor-replace.svg
blobc19debc7938d413813e0fbd735cb017ead09c8d8
1 <svg version="1.1" xmlns="http://www.w3.org/2000/svg">
2 <script>
3 function runTest() {
4 g.offsetTop;
5 g.removeChild(g.firstChild);
6 if (g.firstChild)
7 setTimeout(runTest(),0);
8 else
9 location.reload();
12 window.onload = function() {
13 if (window.testRunner) {
14 testRunner.dumpAsText();
15 testRunner.waitUntilDone();
18 g = document.getElementById("g1");
19 if (location.hash != "#2") {
20 if (location.hash)
21 location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toString();
22 else
23 location.hash = "#1";
24 document.getElementById("g2").style.setProperty('cursor', 'url(#c2)');
25 setTimeout(runTest(),0);
26 } else {
27 document.getElementById("t1").appendChild(document.createTextNode("PASS: Successfully changed cursors."));
28 if (window.testRunner)
29 testRunner.notifyDone();
32 </script>
33 <g id="g1">
34 <cursor id="c1"></cursor>
35 <g cursor="url(#c1)" id="g2"></g>
36 <cursor id="c2"></cursor>
37 <text id="t1" x="20" y="20"></text>
38 </g>
39 </svg>