OLD | NEW |
---|---|
(Empty) | |
1 <svg width="400" height="400" version="1.1" xmlns="http://www.w3.org/2000/svg" x mlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintTest()"> | |
2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"></script > | |
3 <script> | |
4 <![CDATA[ | |
5 function repaintTest() { | |
6 var foreign = document.getElementsByTagName("foreignObject")[0]; | |
7 foreign.style.transform = 'translate(-100px,0px)'; | |
8 } | |
9 ]]> | |
10 </script> | |
11 <rect x="0" y="0" width="100" height="100" fill="red" /> | |
12 <foreignObject x="100" y="0" width="100" height="100"> | |
13 <div xmlns="http://www.w3.org/1999/xhtml" style="width: 100px; height: 100px ; background-color: green;"></div> | |
14 </foreignObject> | |
15 </svg> | |
OLD | NEW |