OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="resources/text-based-repaint.js"></script> |
| 5 <style> |
| 6 |
| 7 body { overflow: hidden; } |
| 8 .icon { |
| 9 position: absolute; |
| 10 background-color: #fdb; |
| 11 left: 200px; |
| 12 top: 10px; |
| 13 width: 40px; |
| 14 height: 40px; |
| 15 } |
| 16 .scroller { |
| 17 overflow: scroll; |
| 18 margin-left: 10px; |
| 19 margin-top: 60px; |
| 20 width: 260px; |
| 21 height: 150px; |
| 22 padding: 20px; |
| 23 border: 5px solid #bce; |
| 24 } |
| 25 .list, .commit { |
| 26 position: relative; |
| 27 width: 180px; |
| 28 height: 250px; |
| 29 } |
| 30 .back { |
| 31 position: absolute; |
| 32 z-index: -1; |
| 33 background-color: #cdc; |
| 34 left: 50px; |
| 35 top: 40px; |
| 36 width: 180px; |
| 37 height: 100px; |
| 38 } |
| 39 |
| 40 </style> |
| 41 </head> |
| 42 <body onload="runRepaintTest()"> |
| 43 <div class="icon" style="transform: translateZ(0)"></div> |
| 44 <div class="scroller"> |
| 45 <div class="list"> |
| 46 <div class="commit"> |
| 47 <div class="back"></div> |
| 48 </div> |
| 49 </div> |
| 50 </div> |
| 51 <script> |
| 52 function repaintTest() { |
| 53 document.querySelector(".scroller").scrollTop = 50; |
| 54 } |
| 55 </script> |
| 56 </body> |
| 57 </html> |
OLD | NEW |