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