OLD | NEW |
1 <script src="../../fast/js/resources/js-test-pre.js"></script> | 1 <script src="../../fast/js/resources/js-test-pre.js"></script> |
2 | 2 |
3 <svg> | 3 <svg> |
4 <foreignObject> | 4 <foreignObject> |
5 <div style="position: absolute;"> | 5 <div style="position: absolute;"> |
6 <div id="div1"></div> | 6 <div id="div1"></div> |
7 <div id="div2" style="overflow:hidden; width:100px; height:100px;">x
</div> | 7 <div id="div2" style="overflow:hidden; width:100px; height:100px;">x
</div> |
8 </div> | 8 </div> |
9 </foreignObject> | 9 </foreignObject> |
10 </svg> | 10 </svg> |
11 <script> | 11 <script> |
12 function RemoveNode(n) { n.parentNode.removeChild(n) } | 12 function RemoveNode(n) { n.parentNode.removeChild(n) } |
13 window.onload = function() { | 13 window.onload = function() { |
14 document.body.offsetTop; // Force layout. | 14 document.body.offsetTop; // Force layout. |
15 RemoveNode(document.getElementById('div1')); | 15 RemoveNode(document.getElementById('div1')); |
16 document.body.offsetTop; // Force layout. | 16 document.body.offsetTop; // Force layout. |
17 RemoveNode(document.getElementById('div2')); | 17 RemoveNode(document.getElementById('div2')); |
18 if (window.layoutTestController) | 18 if (window.layoutTestController) |
19 layoutTestController.dumpAsText(); | 19 layoutTestController.dumpAsText(); |
20 } | 20 } |
21 </script> | 21 </script> |
22 <body> | 22 <body> |
23 PASS | 23 PASS |
24 </body> | 24 </body> |
25 | 25 |
OLD | NEW |