Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / compositing / overflow / text-color-change.html
1 <!DOCTYPE html>
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
3 <script>
4 function repaintTest() {
5   document.getElementById('scroller').style.color = 'green';
6 }
7 onload = runRepaintTest;
8 </script>
9 Tests invalidation of scrolling text. On composited scrolling, the whole text should be invalidated when the 'color' property of the container changes.
10 <pre id="scroller" style="width: 200px; height: 200px; overflow: scroll; color: red">
11   Text
12   Text
13   Text
14   Text
15   Text
16   Text
17   Text
18   Text
19   Text
20   Text
21   Text
22   Text
23   Text
24   Text
25   Text
26   Text
27   Text
28   Text
29   Text
30   Text
31   Text
32   Text
33   Text
34   Text
35   Text
36   Text
37   Text
38   Text
39   Text
40   Text
41   Text
42   Text
43   Text
44   Text
45   Text
46   Text
47   Text
48   Text
49   Text
50   Text
51   Text
52 </pre>