Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / repaint / inline-style-change-in-scrolled-view.html
blobb3afdba1b92f8785f3579d9352dbc7b6ed0c2d8b
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';
7 onload = function() {
8 window.scrollTo(200, 200);
9 runRepaintTest();
11 </script>
12 <style>
13 body {
14 margin: 0;
15 width: 2000px;
16 height: 2000px;
18 span {
19 color: red;
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>