OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | |
3 <script src="../../resources/run-after-layout-and-paint.js"></script> | |
fs
2016/01/07 16:18:29
Nit: Not needed/used.
| |
4 <script> | |
5 window.onload = runRepaintTest; | |
6 | |
7 function repaintTest() { | |
8 var foreign = document.getElementsByTagName("foreignObject")[0]; | |
9 foreign.style.transform = 'translate(100px, 0px)'; | |
10 } | |
11 </script> | |
12 <body> | |
13 <svg version="1.1" xmlns="http://www.w3.org/2000/svg"> | |
14 <foreignObject width="100" height="100"> | |
15 <div xmlns="http://www.w3.org/1999/xhtml" style="width: 100px; height: 100px ; background-color: green;"></div> | |
16 </foreignObject> | |
17 </svg> | |
18 </body> | |
OLD | NEW |