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