| OLD | NEW |
| 1 <!doctype HTML> | 1 <!doctype HTML> |
| 2 <div id="scroller" style="width: 200px; height: 200px; overflow: scroll; backgro
und: lightgray; will-change: transform"> | 2 <div id="scroller" style="width: 200px; height: 200px; overflow: scroll; backgro
und: lightgray; will-change: transform"> |
| 3 <div style="width: 100px; height: 600px; background: lightblue; margin-bottom: 1
0px"></div> | 3 <div style="width: 100px; height: 600px; background: lightblue; margin-bottom: 1
0px"></div> |
| 4 <div id="target" style="width: 200px; height: 1000px; background: lightblue; mar
gin-bottom: 10px">test</div> | 4 <div id="target" style="width: 200px; height: 1000px; background: lightblue; mar
gin-bottom: 10px">test</div> |
| 5 </div> | 5 </div> |
| 6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 7 <script> | 7 <script> |
| 8 scroller.scrollTop = 450; | 8 scroller.scrollTop = 450; |
| 9 function repaintTest() { | 9 function repaintTest() { |
| 10 var range = document.createRange(); | 10 var range = document.createRange(); |
| 11 range.selectNode(target); | 11 range.selectNode(target); |
| 12 window.getSelection().addRange(range); | 12 window.getSelection().addRange(range); |
| 13 } | 13 } |
| 14 onload = runRepaintTest; | 14 onload = runRepaintAndPixelTest; |
| 15 </script> | 15 </script> |
| OLD | NEW |