4 This test checks that the contents of accelerated scrolling layers are properly
5 updated also outside the current overflow clip. See
6 https://bugs.webkit.org/show_bug.cgi?id=100524.
11 <style type=
"text/css">
14 -webkit-overflow-scrolling: touch
;
28 <script src=
"../../fast/repaint/resources/text-based-repaint.js"></script>
29 <script type=
"text/javascript">
31 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
33 window
.addEventListener('load', function() {
34 var scroller
= document
.getElementById('scroller');
35 var indicator
= document
.getElementById('indicator');
37 // Make sure the scrolling content is painted before we start.
40 // Scroll all the way to the bottom and change the color of the
41 // indicator (which is now outside the overflow clip).
42 scroller
.scrollTop
= 1000;
47 function repaintTest() {
48 var scroller
= document
.getElementById('scroller');
49 var indicator
= document
.getElementById('indicator');
51 indicator
.style
.background
= 'green';
53 // Scroll back up so that the updated (green) indicator is visible.
54 scroller
.scrollTop
= 0;
60 <div id=
"indicator"></div>
61 <div id=
"content"></div>