OLD | NEW |
1 <!DOCTYPE> | 1 <!DOCTYPE> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style> | 5 <style> |
6 body { | 6 body { |
7 margin: 0; | 7 margin: 0; |
8 } | 8 } |
9 | 9 |
10 .box { | 10 .box { |
11 height: 200px; | 11 height: 200px; |
12 width: 200px; | 12 width: 200px; |
13 background-color: red; | 13 background-color: red; |
14 -webkit-transform: translateZ(1px); | 14 transform: translateZ(1px); |
15 } | 15 } |
16 | 16 |
17 .indicator { | 17 .indicator { |
18 position: absolute; | 18 position: absolute; |
19 top: 200px; | 19 top: 200px; |
20 background-color: green; | 20 background-color: green; |
21 } | 21 } |
22 | 22 |
23 .reflected { | 23 .reflected { |
24 -webkit-box-reflect: below 0; | 24 -webkit-box-reflect: below 0; |
(...skipping 18 matching lines...) Expand all Loading... |
43 </script> | 43 </script> |
44 </head> | 44 </head> |
45 <body> | 45 <body> |
46 | 46 |
47 <div class="indicator box"></div> | 47 <div class="indicator box"></div> |
48 <!-- You should see no red box below --> | 48 <!-- You should see no red box below --> |
49 <div id="test" class="reflected box"></div> | 49 <div id="test" class="reflected box"></div> |
50 | 50 |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |