5 <title>background-position and size transitions
</title>
6 <style type=
"text/css" media=
"screen">
11 -webkit-transition-duration:
1s;
12 -webkit-transition-timing-function: linear;
16 background: url('../fast/backgrounds/repeat/resources/gradient.gif') repeat
0 0;
17 -webkit-transition-property: background-position;
21 background-position:
20px
20px;
25 background: url('../fast/backgrounds/repeat/resources/gradient.gif') repeat
0 0;
26 -webkit-transition-property: -webkit-background-size;
27 -webkit-background-size:
10px
10px;
31 -webkit-background-size:
30px
30px;
35 <script src=
"transition-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
36 <script type=
"text/javascript" charset=
"utf-8">
38 const expectedValues = [
39 // [time, element-id, property, expected-value, tolerance]
40 [
0.5, 'box', 'background-position', [
10,
10],
2],
41 [
0.5, 'box2', '-webkit-background-size', [
20,
20],
2],
46 document.getElementById('box').className = 'box final';
47 document.getElementById('box2').className = 'box final';
50 runTransitionTest(expectedValues, setupTest, true);
56 <div id=
"box" class=
"box"></div>
57 <div id=
"box2" class=
"box"></div>