10 background-color: red;
11 -webkit-animation: anim
1s linear infinite;
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;
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; }
27 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
28 <script type=
"text/javascript" charset=
"utf-8">
29 // This test was flaky because it would start before the images were loaded.
31 function imageLoaded() {
33 if (imagesLoaded ==
2) {
34 const expectedValues = [
35 // [time, element-id, property, expected-value, tolerance]
36 [
2.25, [
"box",
"boxStatic"],
"webkitMaskBoxImage",
0.25,
0.05]
38 var doPixelTest = true;
39 var disablePauseAPI = false;
40 var startTestImmediately = true;
41 runAnimationTest(expectedValues, undefined, undefined, disablePauseAPI, doPixelTest, startTestImmediately);
47 <img id=
"box" src=
"resources/green-100.png" onLoad=
"imageLoaded();"/>
48 <img id=
"boxStatic" src=
"resources/stripes-100.png" onLoad=
"imageLoaded();"/>
49 <div id=
"result"></div>