10 background-color: green;
11 -webkit-animation: anim
1s linear infinite;
12 border-image: url()
5 5 5 5 /
20px stretch stretch;
20 background-color: green;
21 -webkit-animation: animShorthand
1s linear infinite;
29 background-color: green;
30 border-image: -webkit-cross-fade(url(resources/stripes-
100.png), url(resources/green-
100.png),
50%)
5 5 5 5 /
20px stretch stretch;
32 @-webkit-keyframes anim {
33 from { border-image-source: url(resources/stripes-
100.png); }
34 to { border-image-source: url(resources/green-
100.png); }
36 @-webkit-keyframes animShorthand {
37 from { border-image: url(resources/stripes-
100.png)
5 5 5 5 /
20px stretch stretch; }
38 to { border-image: url(resources/green-
100.png)
5 5 5 5 /
20px stretch stretch; }
41 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
42 <script type=
"text/javascript" charset=
"utf-8">
43 // This test was flaky because it would start before the images were loaded.
45 function imageLoaded() {
47 if (imagesLoaded ==
2) {
48 const expectedValues = [
49 // [time, element-id, property, expected-value, tolerance]
50 // FIXME: We can't test reading the borderImage shorthand because of bug #
13658.
51 [
2.5, [
"box",
"boxStatic"],
"borderImageSource",
0.5,
0.05],
52 [
2.5, [
"boxShorthand",
"boxStatic"],
"borderImageSource",
0.5,
0.05],
55 var doPixelTest = true;
56 var disablePauseAPI = false;
57 var startTestImmediately = true;
58 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, undefined, startTestImmediately);
65 <div id=
"boxShorthand"></div>
66 <div id=
"boxStatic"></div>
67 <div id=
"result"></div>
68 <img src=
"../animations/resources/stripes-100.png" onLoad=
"imageLoaded();"/>
69 <img src=
"../animations/resources/green-100.png" onLoad=
"imageLoaded();"/>