OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 #searchbar { |
| 4 bottom: 0; /* Useful for seeing the issue visually. */ |
| 5 position: fixed; |
| 6 } |
| 7 #recentlink { |
| 8 background: purple; |
| 9 position: absolute; |
| 10 width: 150px; |
| 11 height: 150px; |
| 12 } |
| 13 header { |
| 14 padding: 10px; |
| 15 position: relative; |
| 16 z-index: 50; |
| 17 -webkit-backface-visibility: hidden; |
| 18 } |
| 19 </style> |
| 20 To manually test, just scroll down, there should be no purple trace. |
| 21 <header> |
| 22 <div id="searchbar"> |
| 23 <div id="recentlink"></div> |
| 24 </div> |
| 25 </header> |
| 26 |
| 27 <!-- Used to have some overflowing content to scroll --> |
| 28 <div style="height: 5000px"></div> |
| 29 |
| 30 <script src="resources/text-based-repaint.js" type="text/javascript"></script> |
| 31 <script> |
| 32 window.scrollTo(0, 1000); |
| 33 |
| 34 window.testIsAsync = true; |
| 35 if (window.testRunner) |
| 36 testRunner.waitUntilDone(); |
| 37 |
| 38 function repaintTest() |
| 39 { |
| 40 window.scrollBy(0, 400); |
| 41 finishRepaintTest(); |
| 42 } |
| 43 |
| 44 // We need to skip 2 frames for the bug to show under DRT. |
| 45 window.requestAnimationFrame(function() { |
| 46 window.requestAnimationFrame(function() { |
| 47 runRepaintTest(); |
| 48 }); |
| 49 }); |
| 50 </script> |
| 51 |
OLD | NEW |