OLD | NEW |
(Empty) | |
| 1 <style> |
| 2 body { |
| 3 margin: 0; |
| 4 } |
| 5 |
| 6 .container { |
| 7 width: 200px; |
| 8 height: 2000px; |
| 9 } |
| 10 |
| 11 .outerIndicator { |
| 12 position: absolute; |
| 13 top: 250px; |
| 14 background-color: green; |
| 15 width: 200px; |
| 16 height: 200px; |
| 17 } |
| 18 |
| 19 .middleIndicator { |
| 20 position: absolute; |
| 21 top: 50px; |
| 22 background-color: yellow; |
| 23 width: 200px; |
| 24 height: 100px; |
| 25 } |
| 26 |
| 27 .innerIndicator { |
| 28 position: absolute; |
| 29 top: 25px; |
| 30 background-color: red; |
| 31 width: 200px; |
| 32 height: 50px; |
| 33 } |
| 34 </style> |
| 35 |
| 36 <script> |
| 37 if (window.testRunner) |
| 38 testRunner.waitUntilDone(); |
| 39 |
| 40 function finishTest() { |
| 41 window.scrollTo(0, 200); |
| 42 if (window.testRunner) |
| 43 testRunner.notifyDone(); |
| 44 } |
| 45 |
| 46 window.addEventListener('load', function() { |
| 47 requestAnimationFrame(function() { |
| 48 requestAnimationFrame(finishTest); |
| 49 }); |
| 50 }); |
| 51 </script> |
| 52 |
| 53 <div class="container"> |
| 54 <div class="outerIndicator"> |
| 55 <div class="middleIndicator"> |
| 56 <div class="innerIndicator"></div> |
| 57 </div> |
| 58 </div> |
| 59 </div> |
OLD | NEW |