| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="resources/text-based-repaint.js"></script> |
| 3 <script src="../../resources/run-after-display.js"></script> |
| 4 <script> |
| 5 if (window.testRunner) |
| 6 window.jsTestIsAsync = true; |
| 7 |
| 8 function repaintTest() |
| 9 { |
| 10 document.getElementById('remove').style.display='none'; |
| 11 |
| 12 if (window.testRunner) { |
| 13 runAfterDisplay(function() { |
| 14 testRunner.notifyDone(); |
| 15 }); |
| 16 } |
| 17 } |
| 18 onload = runRepaintTest; |
| 19 </script> |
| 20 <style> |
| 21 #wrapper { |
| 22 visibility: hidden; |
| 23 position: absolute; |
| 24 width: 600px; |
| 25 float: right; |
| 26 } |
| 27 #container { float: right; } |
| 28 #abs_pos { |
| 29 position: absolute; |
| 30 bottom: 0; |
| 31 } |
| 32 #remove_child, |
| 33 #keep_child { |
| 34 height: 100px; |
| 35 width: 100px; |
| 36 visibility: visible; |
| 37 } |
| 38 #remove_child { |
| 39 background-color: red; |
| 40 position: absolute; |
| 41 } |
| 42 #keep_child { background-color: green; } |
| 43 .outer { |
| 44 float: left; |
| 45 width: 100px; |
| 46 height: 300px; |
| 47 } |
| 48 #keep_inner { |
| 49 position: relative; |
| 50 height: 220px; |
| 51 } |
| 52 p { visibility: visible; } |
| 53 </style> |
| 54 |
| 55 <p>This is a reduction for http://crbug.com/371640.</p> |
| 56 <p>The test PASSES if you see 1 green square and no red square.</p> |
| 57 |
| 58 <div id='wrapper'> |
| 59 <div id='container'> |
| 60 <div id='keep_outer' class='outer'> |
| 61 <div id='keep_inner'> |
| 62 <div id='abs_pos'> |
| 63 <div id='keep_child'> </div> |
| 64 </div> |
| 65 </div> |
| 66 </div> |
| 67 <div id='remove' class='outer'> |
| 68 <div id='remove_child'> </div> |
| 69 </div> |
| 70 </div> |
| 71 </div> |
| OLD | NEW |