| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 | |
| 5 <meta name="viewport" content="width=800"> | |
| 6 <style> | |
| 7 html { font-size: 16px; } | |
| 8 body { width: 800px; margin: 0; overflow-y: hidden; } | |
| 9 </style> | |
| 10 | |
| 11 <script src="resources/autosizingTest.js"></script> | |
| 12 | |
| 13 </head> | |
| 14 <body> | |
| 15 | |
| 16 <table id="c1"><tr><td> | |
| 17 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tem
por incididunt ut | |
| 18 labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercit
ation ullamco | |
| 19 laboris ni si ut aliquip ex ea commodo consequat. | |
| 20 </td></tr></table> | |
| 21 | |
| 22 <table id="c2" style="margin-left: 50px"><tr><td> | |
| 23 Another comment. | |
| 24 </td></tr></table> | |
| 25 | |
| 26 <script> | |
| 27 | |
| 28 if (window.testRunner) | |
| 29 testRunner.waitUntilDone(); | |
| 30 | |
| 31 setTimeout(function() { | |
| 32 var forceLayout = document.body.offsetTop; | |
| 33 | |
| 34 var c3 = document.querySelector('#c2').cloneNode(true); | |
| 35 c3.id = 'c3'; | |
| 36 c3.style.marginLeft = '100px'; | |
| 37 | |
| 38 document.body.appendChild(c3); | |
| 39 forceLayout = document.body.offsetTop; | |
| 40 | |
| 41 if (window.testRunner) | |
| 42 testRunner.notifyDone(); | |
| 43 }, 0); | |
| 44 | |
| 45 </script> | |
| 46 </body> | |
| 47 </html> | |
| OLD | NEW |