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 .reflected { | 6 .reflected { |
7 position: relative; | 7 position: relative; |
8 width: 2150px; | 8 width: 2150px; |
9 height: 200px; | 9 height: 200px; |
10 background-color: green; | 10 background-color: green; |
11 opacity: 0.5; | 11 opacity: 0.5; |
12 -webkit-box-reflect: below -50px; | 12 -webkit-box-reflect: below -50px; |
13 } | 13 } |
14 | 14 |
15 .composited { -webkit-transform: translateZ(0);} | 15 .composited { transform: translateZ(0);} |
16 * { margin: 0; padding: 0; } | 16 * { margin: 0; padding: 0; } |
17 | 17 |
18 </style> | 18 </style> |
19 </head> | 19 </head> |
20 | 20 |
21 <p>Opacity should be applied after reflection, so you should see a green recta
ngle below. The overlap between the original and reflection should not be visibl
e.</p> | 21 <p>Opacity should be applied after reflection, so you should see a green recta
ngle below. The overlap between the original and reflection should not be visibl
e.</p> |
22 <div class="reflected composited">1 | 22 <div class="reflected composited">1 |
23 </div> | 23 </div> |
24 | 24 |
25 </html> | 25 </html> |
OLD | NEW |