OLD | NEW |
1 <!DOCTYPE> | 1 <!DOCTYPE> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <title>Simple composited reflections</title> | 5 <title>Simple composited reflections</title> |
6 <style type="text/css" media="screen"> | 6 <style type="text/css" media="screen"> |
7 | 7 |
8 img { | 8 img { |
9 margin: 20px; | 9 margin: 20px; |
10 } | 10 } |
11 | 11 |
12 .compositing { | 12 .compositing { |
13 -webkit-transform: translateZ(0); | 13 transform: translateZ(0); |
14 } | 14 } |
15 | 15 |
16 .masked { | 16 .masked { |
17 -webkit-mask-image: url(../resources/alpha-gradient.png); | 17 -webkit-mask-image: url(../resources/alpha-gradient.png); |
18 -webkit-mask-repeat: repeat-y; | 18 -webkit-mask-repeat: repeat-y; |
19 } | 19 } |
20 | 20 |
21 </style> | 21 </style> |
22 </head> | 22 </head> |
23 <body> | 23 <body> |
24 | 24 |
25 <p>Testing reflections on directly composited images. Left and right sides sho
uld look the same.</p> | 25 <p>Testing reflections on directly composited images. Left and right sides sho
uld look the same.</p> |
26 <img class="masked" src="../resources/thiswayup.png" width="184" height="124"> | 26 <img class="masked" src="../resources/thiswayup.png" width="184" height="124"> |
27 <img class="compositing masked" src="../resources/thiswayup.png" width="184" h
eight="124"> | 27 <img class="compositing masked" src="../resources/thiswayup.png" width="184" h
eight="124"> |
28 | 28 |
29 </body> | 29 </body> |
30 </html> | 30 </html> |
OLD | NEW |