| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/run-after-display.js"></script> |
| 4 <script> | 5 <script> |
| 5 function test() | 6 function test() |
| 6 { | 7 { |
| 7 document.body.offsetTop; | |
| 8 if (window.testRunner) { | 8 if (window.testRunner) { |
| 9 testRunner.display(); | 9 testRunner.waitUntilDone(); |
| 10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
| 11 finish(); | |
| 12 } else { | |
| 13 window.setTimeout(finish, 50); | |
| 14 } | 11 } |
| 12 runAfterDisplay(finish); |
| 15 } | 13 } |
| 16 | 14 |
| 17 function finish() | 15 function finish() |
| 18 { | 16 { |
| 19 var innerLayer = document.getElementById('innerLayer'); | 17 var innerLayer = document.getElementById('innerLayer'); |
| 20 innerLayer.style.left = '19px'; | 18 innerLayer.style.left = '19px'; |
| 21 innerLayer.style.top = '23px'; | 19 innerLayer.style.top = '23px'; |
| 20 if (window.testRunner) |
| 21 testRunner.notifyDone(); |
| 22 } | 22 } |
| 23 </script> | 23 </script> |
| 24 <style> | 24 <style> |
| 25 /* nodes that have layers and are containers for their children */ | 25 /* nodes that have layers and are containers for their children */ |
| 26 .a { outline: solid blue 1px } | 26 .a { outline: solid blue 1px } |
| 27 | 27 |
| 28 /* nodes that have layers but are not containers for their children */ | 28 /* nodes that have layers but are not containers for their children */ |
| 29 .b { outline: solid red 1px } | 29 .b { outline: solid red 1px } |
| 30 | 30 |
| 31 /* nodes that do not have layers */ | 31 /* nodes that do not have layers */ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 44 <div style="position:relative; top:60px" class="a"> | 44 <div style="position:relative; top:60px" class="a"> |
| 45 <div style="height:30px" class="c"></div> | 45 <div style="height:30px" class="c"></div> |
| 46 </div> | 46 </div> |
| 47 <div style="overflow:hidden; height:13px" class="b"> | 47 <div style="overflow:hidden; height:13px" class="b"> |
| 48 </div> | 48 </div> |
| 49 </div> | 49 </div> |
| 50 </div> | 50 </div> |
| 51 </div> | 51 </div> |
| 52 </body> | 52 </body> |
| 53 </html | 53 </html |
| OLD | NEW |