Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / use-on-use-with-child.svg
blob7aa63ea060931b75fc520eca62c19cf8f2fe78b6
1 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg11.dtd">
2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3 <title id="viewer_title">Mouse Over the Red Dot And Wait For the Crash</title>
4 <defs>
5 <circle id="rim" cx="0" cy="0" r="70"/>
6 <g id="loupePlus">
7 <use id="useRim" xlink:href="#rim" fill="#e33c31">
8 <set />
9 </use>
10 </g>
11 </defs>
13 <use id="zoomplus" xlink:href="#loupePlus" x="300" y="300" >
14 </use>
15 <foreignObject><pre id="console" xmlns="http://www.w3.org/1999/xhtml"/></foreignObject>
16 <script>
17 function makeCrash(){
18 if (window.eventSender) {
19 eventSender.dragMode = false;
20 eventSender.mouseMoveTo(300, 300);
21 eventSender.mouseDown();
22 eventSender.mouseUp();
25 // If you like, you can make a crash.
26 // makeCrash();
28 var console = document.getElementById("console");
29 function print(string)
31 console.textContent += string;
34 function printInstanceTree( obj, indent )
36 indent += " ";
37 print(indent);
38 if (obj.id) {
39 print(" id = " + obj.id);
41 print(" this = " + obj + "\n");
42 for (var m = obj.firstChild; m != null; m = m.nextSibling ) {
43 printInstanceTree(m, indent);
46 var zoomplus = document.getElementById("zoomplus");
47 // Force a recalcStyle so the use shadow tree is created.
48 getComputedStyle(zoomplus).color;
49 var useobj = internals.shadowRoot(zoomplus);
50 print("The instance tree of use element zoomplus:\n");
51 printInstanceTree(useobj,"");
53 if (window.testRunner){
54 testRunner.dumpAsText();
57 </script>
58 </svg>