Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / overflow-hidden-in-overflow-hidden-scrolled.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <link rel="stylesheet" href="resources/default.css">
5     <style>
6         #outer {
7             position: relative;
8             overflow: hidden;
9             height: 200px;
10         }
11
12         section {
13             padding: 192px 0 0 0;
14             width: 200px;
15         }
16
17         div {
18             height: 190px;
19         }
20
21         .innerWrapper {
22             overflow: hidden;
23         }
24
25         .red {
26             background-color: red;
27         }
28
29         .green {
30             background-color: green;
31         }
32     </style>
33     <script>
34         if (window.testRunner) {
35             testRunner.dumpAsTextWithPixelResults();
36             testRunner.waitUntilDone();
37         }
38
39         function repaintTest()
40         {
41             window.location.hash = "#ucp";
42             if (window.testRunner)
43                 testRunner.notifyDone();
44         }
45
46         function runRepaintTest()
47         {
48             document.getElementById("outer").scrollTop = 1000;
49
50             if (window.testRunner)
51                 testRunner.display();
52
53             setTimeout(repaintTest, 0);
54         }
55         window.addEventListener("load", runRepaintTest, false);
56     </script>
57 </head>
58 <body>
59     <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element being scrolled off page using javascript. -->
60     <!-- For the test to pass you should not see any RED, only green -->
61     <div id="outer">
62         <section>
63             <div class="innerWrapper">
64                 <div class="red"></div>
65                 <div id="ucp" class="green"></div>
66             </div>
67         </section>
68     </div>
69 </body>
70 </html>