Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / reflection-redraw.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2   "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4   <head>
5     <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6     <title>Reflection Redraw</title>
7     <style type="text/css" media="screen">
8       #container {
9         position: absolute;
10         top: 120px;
11       }
12       .box {
13         position: absolute;
14         width: 150px;
15         height: 100px;
16         margin: 10px;
17         padding: 10px;
18         -webkit-box-sizing: border-box;
19         text-align: center;
20         border: 1px solid black;
21         background-color: gray;
22       }
23       .reflect {
24         background-color: gray;
25         -webkit-box-reflect: left 5px;
26       }
27       
28     </style>
29     <script src="resources/repaint.js" type="text/javascript" charset="utf-8"></script>
30     <script type="text/javascript" charset="utf-8">
31       if (window.testRunner)
32         testRunner.waitUntilDone();
33
34       function repaintTest()
35       {
36         var paras = document.getElementsByTagName('p');
37         window.console.log('here')
38         for (var i = 0; i < paras.length; ++i)
39           paras[i].style.color = 'green';
40       }
41
42       function startTest()
43       {
44         runRepaintTest();
45         if (window.testRunner)
46           testRunner.notifyDone();
47       }
48     </script>
49   </head>
50 <body onload="startTest()">
51   <div id="container">
52     <div class="box reflect-top"  style="left: 275px; -webkit-box-reflect: above 10px;">
53       <p>The color of this text in the reflection should be green</p>
54     </div>
55
56     <div class="box reflect-left" style="top: 110px; left: 200px; -webkit-box-reflect: left 10px;">
57       <p>The color of this text in the reflection should be green</p>
58     </div>
59
60     <div class="box reflect-right"  style="top: 110px; left: 350px; -webkit-box-reflect: right 10px;">
61       <p>The color of this text in the reflection should be green</p>
62     </div>
63
64     <div class="box reflect-bottom"  style="top: 220px; left: 275px; -webkit-box-reflect: below 10px;">
65       <p>The color of this text in the reflection should be green</p>
66     </div>
67   </div>
68
69 </html>