Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / fixed.html
1 <html>
2 <head>
3     <title></title>
4     <script src="../../resources/run-after-display.js"></script>
5     <script src="resources/text-based-repaint.js" type="text/javascript"></script>
6     <script type="text/javascript">
7         if (window.testRunner)
8             testRunner.waitUntilDone();
9
10         window.onload = function()
11         {
12             window.scrollTo(0, 20);
13             runAfterDisplay(function() {
14                 runRepaintTest();
15                 if (window.testRunner)
16                     testRunner.notifyDone();
17             });
18         }
19
20         function repaintTest()
21         {
22             document.getElementById('t').style.background='green';
23         }
24     </script>
25 </head>
26 <body style="height:2000px;">
27     <p style="position: relative; top: 20px;">
28         Repaint test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=11452">http://bugs.webkit.org/show_bug.cgi?id=11452</a>
29         REGRESSION (r16736-r16801): Incorrect repaint of fixed boxes</i>.
30     </p>
31     <div id="t" style="position: fixed; width: 100px; height: 100px; background: red"></div>
32 </body>
33 </html>