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 | 6 |
7 div { | 7 div { |
8 -webkit-box-sizing: border-box; | 8 -webkit-box-sizing: border-box; |
9 } | 9 } |
10 .reflected { | 10 .reflected { |
11 position: relative; | 11 position: relative; |
12 width: 150px; | 12 width: 150px; |
13 height: 100px; | 13 height: 100px; |
14 background-color: green; | 14 background-color: green; |
15 opacity: 0.5; | 15 opacity: 0.5; |
16 -webkit-box-reflect: below -50px; | 16 -webkit-box-reflect: below -50px; |
17 } | 17 } |
18 | 18 |
19 .composited { | 19 .composited { |
20 -webkit-transform: translateZ(0); | 20 transform: translateZ(0); |
21 } | 21 } |
22 | 22 |
23 </style> | 23 </style> |
24 </head> | 24 </head> |
25 | 25 |
26 <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> | 26 <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> |
27 <div class="reflected composited"> | 27 <div class="reflected composited"> |
28 </div> | 28 </div> |
29 | 29 |
30 </html> | 30 </html> |
OLD | NEW |