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/run-after-layout-and-paint.js"></script> | 5 <script src="../../fast/../resources/run-after-layout-and-paint.js"></script> |
6 <script> | 6 <script> |
7 if (window.testRunner) { | 7 if (window.testRunner) { |
8 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
9 } | 9 } |
10 function repaintTest() | 10 function repaintTest() |
11 { | 11 { |
12 document.getElementById('resize-target').style.height = '200px'; | 12 document.getElementById('resize-target').style.height = '200px'; |
13 if (window.testRunner) | 13 if (window.testRunner) |
14 testRunner.notifyDone(); | 14 testRunner.notifyDone(); |
15 } | 15 } |
16 </script> | 16 </script> |
17 </head> | 17 </head> |
18 | 18 |
19 <body style="margin: 0; padding: 0; overflow: hidden;" onload="runAfterLayoutAnd
Paint(repaintTest);"> | 19 <body style="margin: 0; padding: 0; overflow: hidden;" onload="runAfterLayoutAnd
Paint(repaintTest);"> |
20 <div id="resize-target" style="width: 400px; height: 400px; position: absolute
;"> | 20 <div id="resize-target" style="width: 400px; height: 400px; position: absolute
;"> |
21 <!-- After window resizing, this DIV element should not be visible --> | 21 <!-- After window resizing, this DIV element should not be visible --> |
22 <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> |
23 </div> | 23 </div> |
24 | 24 |
25 <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> |
26 </body> | 26 </body> |
27 </html> | 27 </html> |
OLD | NEW |