Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / inline-style-change-in-scrolled-view.html
1 <!DOCTYPE html>
2 <script src="resources/text-based-repaint.js"></script>
3 <script>
4 function repaintTest() {
5   document.getElementsByTagName('span')[0].style.color = 'green';
6 }
7 onload = function() {
8   window.scrollTo(200, 200);
9   runRepaintTest();
10 }
11 </script>
12 <style>
13 body {
14   margin: 0;
15   width: 2000px;
16   height: 2000px;
17 }
18 span {
19   color: red;
20 }
21 </style>
22 Tests if inline element in scrolled view is correctly repainted on style change.
23 Passes if the text below is fully green;
24 <div>
25   <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
26   <span>Text Text Text Text Text Text Text Text Text Text Text Text Text</span>
27 </div>