OLD | NEW |
---|---|
(Empty) | |
1 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3 .org/1999/xlink"> | |
2 <g style="cursor:url(#cursor), auto"> | |
3 <g> | |
4 <rect id="rect" x="50" y="50" width="100" height="100" fill="green" /> | |
rune
2015/11/30 14:22:58
Indentation looks funny.
| |
5 <text id="result1" x="50" y="200">Not run.</text> | |
6 <text id="result2" x="50" y="220">Not run.</text> | |
7 </g> | |
8 </g> | |
9 <cursor id="cursor" xlink:href="icon1.ico" x="0" y="0" /> | |
10 <script> | |
11 // Modifying href of a cursor element should cause a recalc of elements using it. | |
12 | |
13 if (window.testRunner) | |
14 testRunner.dumpAsText(); | |
15 | |
16 var rect = document.getElementById("rect"); | |
17 var result1 = document.getElementById("result1").firstChild; | |
18 var result2 = document.getElementById("result2").firstChild; | |
19 | |
20 if (getComputedStyle(rect).cursor == "url(\"file:///home/rune/dev/src/th ird_party/WebKit/LayoutTests/svg/css/icon1.ico\"), auto") | |
21 result1.data = "PASS"; | |
22 else | |
23 result1.data = "FAIL - " + getComputedStyle(rect).cursor; | |
24 | |
25 document.getElementById("cursor").setAttribute("xlink:href", "icon2.ico" ); | |
26 | |
27 if (getComputedStyle(rect).cursor == "url(\"file:///home/rune/dev/src/th ird_party/WebKit/LayoutTests/svg/css/icon2.ico\"), auto") | |
28 result2.data = "PASS"; | |
29 else | |
30 result2.data = "FAIL - " + getComputedStyle(rect).cursor; | |
31 </script> | |
32 </svg> | |
OLD | NEW |