Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / overflow / updating-scrolling-content.html
blob5eac468b344335c20a9193563e539c688c02d089
1 <!DOCTYPE html>
3 <!--
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.
7 -->
9 <html>
10 <head>
11 <style type="text/css">
12 #scroller {
13 overflow: scroll;
14 -webkit-overflow-scrolling: touch;
15 width: 200px;
16 height: 200px;
19 #indicator {
20 background: red;
21 height: 200px;
24 #content {
25 height: 1000px;
27 </style>
28 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
29 <script type="text/javascript">
30 if (window.internals)
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.
38 scroller.offsetTop;
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;
44 runRepaintTest();
45 });
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;
56 </script>
57 </head>
58 <body>
59 <div id="scroller">
60 <div id="indicator"></div>
61 <div id="content"></div>
62 </div>
63 </body>
64 </html>