| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=79490</title> | 4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=79490</title> |
| 5 <script src="resources/repaint.js"></script> | 5 <script src="../../resources/run-after-display.js"></script> |
| 6 <script> | 6 <script> |
| 7 if (window.testRunner) { |
| 8 testRunner.waitUntilDone(); |
| 9 } |
| 7 function repaintTest() | 10 function repaintTest() |
| 8 { | 11 { |
| 9 document.getElementById('resize-target').style.height = '200px'; | 12 document.getElementById('resize-target').style.height = '200px'; |
| 13 if (window.testRunner) |
| 14 testRunner.notifyDone(); |
| 10 } | 15 } |
| 11 </script> | 16 </script> |
| 12 </head> | 17 </head> |
| 13 | 18 |
| 14 <body style="margin: 0; padding: 0; overflow: hidden;" onload="runRepaintTest()"
> | 19 <body style="margin: 0; padding: 0; overflow: hidden;" onload="runAfterDisplay(r
epaintTest);"> |
| 15 <div id="resize-target" style="width: 400px; height: 400px; position: absolute
;"> | 20 <div id="resize-target" style="width: 400px; height: 400px; position: absolute
;"> |
| 16 <!-- After window resizing, this DIV element should not be visible --> | 21 <!-- After window resizing, this DIV element should not be visible --> |
| 17 <div style="width: 100px; min-height: 50%; background-color: red; display: i
nline-block;"></div> | 22 <div style="width: 100px; min-height: 50%; background-color: red; display: i
nline-block;"></div> |
| 18 </div> | 23 </div> |
| 19 | 24 |
| 20 <div style="width: 100px; height: 100px; background-color: green; position: ab
solute;"></div> | 25 <div style="width: 100px; height: 100px; background-color: green; position: ab
solute;"></div> |
| 21 </body> | 26 </body> |
| 22 </html> | 27 </html> |
| OLD | NEW |