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 type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 .box { | 6 .box { |
7 height: 100px; | 7 height: 100px; |
8 width: 100px; | 8 width: 100px; |
9 margin: 20px; | 9 margin: 20px; |
10 margin-bottom: 120px; | 10 margin-bottom: 120px; |
11 background-color: green; | 11 background-color: green; |
12 } | 12 } |
13 | 13 |
14 .reflected { | 14 .reflected { |
15 -webkit-box-reflect: below 2px | 15 -webkit-box-reflect: below 2px |
16 -webkit-gradient(linear, left top, left bottom, from(transparent), to(
white)); | 16 -webkit-gradient(linear, left top, left bottom, from(transparent), to(
white)); |
17 } | 17 } |
18 | 18 |
19 .composited { | 19 .composited { |
20 -webkit-transform: translateZ(0); | 20 transform: translateZ(0); |
21 } | 21 } |
22 </style> | 22 </style> |
23 </head> | 23 </head> |
24 <body> | 24 <body> |
25 | 25 |
26 <p>Reflection should be masked with gradient.</p> | 26 <p>Reflection should be masked with gradient.</p> |
27 <div class="reflected composited box"> | 27 <div class="reflected composited box"> |
28 </div> | 28 </div> |
29 | 29 |
30 </body> | 30 </body> |
31 </html> | 31 </html> |
OLD | NEW |