OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 #box { | 4 #box { |
5 position: absolute; | 5 position: absolute; |
6 left: 100px; | 6 left: 100px; |
7 top: 100px; | 7 top: 100px; |
8 height: 100px; | 8 height: 100px; |
9 width: 100px; | 9 width: 100px; |
10 background-color: red; | 10 background-color: red; |
11 -webkit-mask-image: -webkit-cross-fade(url(resources/stripes-100.png), u
rl(resources/green-100.png), 25%); | 11 -webkit-mask-image: -webkit-cross-fade(url(resources/stripes-100.png), u
rl(resources/green-100.png), 25%); |
12 } | 12 } |
13 #boxStatic { | 13 #boxStatic { |
14 position: absolute; | 14 position: absolute; |
15 left: 100px; | 15 left: 100px; |
16 top: 200px; | 16 top: 200px; |
17 height: 100px; | 17 height: 100px; |
18 width: 100px; | 18 width: 100px; |
19 background-color: red; | 19 background-color: red; |
20 -webkit-mask-image: -webkit-cross-fade(url(resources/stripes-100.png), u
rl(resources/green-100.png), 25%); | 20 -webkit-mask-image: -webkit-cross-fade(url(resources/stripes-100.png), u
rl(resources/green-100.png), 25%); |
21 } | 21 } |
22 </style> | 22 </style> |
23 </head> | 23 </head> |
24 <body> | 24 <body> |
25 <img id="box" src="resources/green-100.png"/> | 25 <img id="box" src="resources/green-100.png"/> |
26 <img id="boxStatic" src="resources/stripes-100.png"/> | 26 <img id="boxStatic" src="resources/stripes-100.png"/> |
27 <div id="result"> | 27 <div id="result"> |
28 PASS - "webkitMaskImage" property for "box" element at 2.25s saw something close
to: 0.25<br> | |
29 PASS - "webkitMaskImage" property for "box" and "boxStatic" elements at 2.25s ar
e close enough to each other | 28 PASS - "webkitMaskImage" property for "box" and "boxStatic" elements at 2.25s ar
e close enough to each other |
30 </div> | 29 </div> |
31 </body> | 30 </body> |
32 </html> | 31 </html> |
OLD | NEW |