OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
5 <style> | 5 <style> |
6 .outer { | 6 .outer { |
7 width: 120px; | 7 width: 120px; |
8 height: 230px; | 8 height: 230px; |
9 margin: 20px; | 9 margin: 20px; |
10 border: 1px solid black; | 10 border: 1px solid black; |
11 -webkit-box-reflect: right 10px; | 11 -webkit-box-reflect: right 10px; |
12 } | 12 } |
13 | 13 |
14 .inner { | 14 .inner { |
15 margin: 10px; | 15 margin: 10px; |
16 width: 100px; | 16 width: 100px; |
17 height: 100px; | 17 height: 100px; |
18 background-color: green; | 18 background-color: green; |
19 text-align: center; | 19 text-align: center; |
20 font-size: 50pt; | 20 font-size: 50pt; |
21 -webkit-box-reflect: below 10px; | 21 -webkit-box-reflect: below 10px; |
22 } | 22 } |
23 | 23 |
24 .composited { | 24 .composited { |
25 -webkit-transform: translateZ(0); | 25 transform: translateZ(0); |
26 } | 26 } |
27 | 27 |
28 </style> | 28 </style> |
29 </head> | 29 </head> |
30 <body> | 30 <body> |
31 <p>You should see the original and three copies of the blue box.</p> | 31 <p>You should see the original and three copies of the blue box.</p> |
32 <div class="outer composited"> | 32 <div class="outer composited"> |
33 <div class="inner composited"> | 33 <div class="inner composited"> |
34 1 | 34 1 |
35 </div> | 35 </div> |
36 </div> | 36 </div> |
37 </body> | 37 </body> |
38 </html> | 38 </html> |
OLD | NEW |