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