1 <!-- Based on paint/selection/selection-within-composited-scroller.html -->
3 <div id=
"scroller" style=
"width: 200px; height: 200px; overflow: scroll; background: lightgray; will-change: transform">
4 <div style=
"width: 100px; height: 600px; background: lightblue; margin-bottom: 10px"></div>
5 <div id=
"target" style=
"width: 200px; height: 1000px; background: lightblue; margin-bottom: 10px">test
</div>
7 <script src=
"resources/paint-invalidation-test.js"></script>
10 testRunner
.dumpAsTextWithPixelResults();
11 scroller
.scrollTop
= 450;
12 window
.expectedPaintInvalidationObjects
= [
13 "LayoutBlockFlow HTML",
14 "LayoutBlockFlow BODY",
15 "LayoutBlockFlow DIV id='scroller'",
16 "LayoutBlockFlow DIV id='target'",
18 "InlineTextBox 'test'",
20 function paintInvalidationTest() {
21 var range
= document
.createRange();
22 range
.selectNode(target
);
23 window
.getSelection().addRange(range
);
25 onload
= runPaintInvalidationTest
;