1 <?xml version="1.0"?> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 4 <svg xmlns="http://www.w3.org/2000/svg" 5 xmlns:xlink="http://www.w3.org/1999/xlink" 6 xmlns:html="http://www.w3.org/1999/xhtml" 7 height="600" width="800" onload="runRepaintTest()"> 8 <script xlink:href="../../fast/repaint/resources/repaint.js"/> 9 <g transform="translate(50,50)"> 10 <polygon points="0,0 300,0 300,300 0,300" style="fill:lightblue; stroke:red;"/> 11 <!-- switch --> 12 <foreignObject x="10" y="10" width="280" height="280"> 13 <html:b>Absolute Lineto</html:b><html:br/> 14 <path d="M50,80 L250,80 150,280 z" 15 style="fill:red; stroke:blue;"/> 16 </foreignObject> 17 <!-- /switch --> 18 <path d="M50,80 L250,80 150,280 z" 19 style="fill:red; stroke:blue;"/> 20 </g> 21 <script> 22 function repaintTest() { 23 if (window.eventSender) { 24 layoutTestController.waitUntilDone(); 25 eventSender.mouseMoveTo(100, 100); 26 eventSender.mouseUp(); 27 eventSender.mouseDown(); 28 setTimeout("layoutTestController.notifyDone()", 0); 29 } 30 } 31 </script> 32 </svg> 33