Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: third_party/WebKit/LayoutTests/svg/css/cursor-change-href.svg

Issue 2522443002: Remove SVGCursorElement (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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" />
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="file:///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:///icon1.ico\") 0 0, au to")
21 result1.data = "PASS";
22 else
23 result1.data = "FAIL - " + getComputedStyle(rect).cursor;
24
25 document.getElementById("cursor").setAttribute("xlink:href", "file:///ic on2.ico");
26
27 if (getComputedStyle(rect).cursor == "url(\"file:///icon2.ico\") 0 0, au to")
28 result2.data = "PASS";
29 else
30 result2.data = "FAIL - " + getComputedStyle(rect).cursor;
31 </script>
32 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698