Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / overflow-scroll-delete.html
1 <html>
2 <head>
3     <script src="resources/repaint.js" type="text/javascript"></script>
4     <script type="text/javascript">
5         function repaintTest()
6         {
7             document.getElementById("t").lastChild.data='Passed Test';
8         }
9     </script>
10 </head>
11 <body onload="runRepaintTest();">
12 <p>
13     This is a repaint test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=11277">http://bugs.webkit.org/show_bug.cgi?id=11277</a>
14     REGRESSION: Incomplete repaint of overflow areas when deleting</i>.
15
16     This shows that the repaint rect doesn't account for scrolling. You can
17     use Quartz Debug to see that changing the text repaints a rect where the text would have been
18     if it hadn't been scrolled.
19 </p>
20 <div id="t" style="overflow-y: scroll; outline: none; width: 80px; height: 69px;">
21     <br><br><br><br><br><br><br><br><br>Failed Test
22 </div>
23 <script>
24     document.getElementById("t").scrollTop = 128;
25 </script>
26 </body>
27 </html>