OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 body { | 4 body { |
5 margin: 0; | 5 margin: 0; |
6 } | 6 } |
7 | 7 |
8 #indicator { | 8 #indicator { |
9 position: absolute; | 9 position: absolute; |
10 width: 100px; | 10 width: 100px; |
11 height: 100px; | 11 height: 100px; |
12 left: 50px; | 12 left: 50px; |
13 top: 150px; | 13 top: 150px; |
14 background-color: red; | 14 background-color: red; |
15 } | 15 } |
16 #box { | 16 #box { |
17 width: 100px; | 17 width: 100px; |
18 height: 100px; | 18 height: 100px; |
19 background-color: green; | 19 background-color: green; |
20 -webkit-transform: translate3d(50px, 50px, 0); | 20 transform: translate3d(50px, 50px, 0); |
21 -webkit-box-reflect: below; | 21 -webkit-box-reflect: below; |
22 } | 22 } |
23 </style> | 23 </style> |
24 <script type="text/javascript"> | 24 <script type="text/javascript"> |
25 if (window.testRunner) | 25 if (window.testRunner) |
26 testRunner.waitUntilDone(); | 26 testRunner.waitUntilDone(); |
27 | 27 |
28 var reflectionOn = true; | 28 var reflectionOn = true; |
29 function toggleReflection() | 29 function toggleReflection() |
30 { | 30 { |
(...skipping 18 matching lines...) Expand all Loading... |
49 | 49 |
50 window.addEventListener('load', doTest, false); | 50 window.addEventListener('load', doTest, false); |
51 </script> | 51 </script> |
52 </head> | 52 </head> |
53 <body> | 53 <body> |
54 <!-- You should see a single green rectangle and no red below. --> | 54 <!-- You should see a single green rectangle and no red below. --> |
55 <div id="indicator"></div> | 55 <div id="indicator"></div> |
56 <div id="box"></div> | 56 <div id="box"></div> |
57 </body> | 57 </body> |
58 </html> | 58 </html> |
OLD | NEW |