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: 200px; | 8 height: 200px; |
9 width: 200px; | 9 width: 200px; |
10 background-color: red; | 10 background-color: red; |
11 -webkit-mask-box-image: -webkit-cross-fade(url(resources/stripes-100.png
), url(resources/green-100.png), 25%) 50 stretch; | 11 -webkit-mask-box-image: -webkit-cross-fade(url(resources/stripes-100.png
), url(resources/green-100.png), 25%) 50 stretch; |
12 } | 12 } |
13 #boxStatic { | 13 #boxStatic { |
14 position: absolute; | 14 position: absolute; |
15 left: 100px; | 15 left: 100px; |
16 top: 300px; | 16 top: 300px; |
17 height: 200px; | 17 height: 200px; |
18 width: 200px; | 18 width: 200px; |
19 background-color: red; | 19 background-color: red; |
20 -webkit-mask-box-image: -webkit-cross-fade(url(resources/stripes-100.png
), url(resources/green-100.png), 25%) 50 stretch; | 20 -webkit-mask-box-image: -webkit-cross-fade(url(resources/stripes-100.png
), url(resources/green-100.png), 25%) 50 stretch; |
21 } | 21 } |
22 @-webkit-keyframes anim { | |
23 from { -webkit-mask-box-image: url(resources/stripes-100.png) 50 stretch
; } | |
24 to { -webkit-mask-box-image: url(resources/green-100.png) 50 stretch;
} | |
25 } | |
26 </style> | 22 </style> |
27 </head> | 23 </head> |
28 <body> | 24 <body> |
29 <img id="box" src="resources/green-100.png"/> | 25 <img id="box" src="resources/green-100.png"/> |
30 <img id="boxStatic" src="resources/stripes-100.png"/> | 26 <img id="boxStatic" src="resources/stripes-100.png"/> |
31 <div id="result"> | 27 <div id="result"> |
32 PASS - "webkitMaskBoxImage" property for "box" and "boxStatic" elements at 2.25s
are close enough to each other | 28 PASS - "webkitMaskBoxImage" property for "box" and "boxStatic" elements at 2.25s
are close enough to each other |
33 </div> | 29 </div> |
34 </body> | 30 </body> |
35 </html> | 31 </html> |
OLD | NEW |