5 <title>background-position and size transitions
</title>
6 <style type=
"text/css" media=
"screen">
11 border:
1px solid black;
12 background-repeat: no-repeat;
13 -webkit-transition-duration:
1s;
14 -webkit-transition-timing-function: linear;
15 -webkit-transition-property: background-position;
19 background-image: url('../fast/backgrounds/repeat/resources/gradient.gif'), url('../fast/backgrounds/repeat/resources/gradient.gif');
20 background-position:
0 0,
0 80px;
24 background-position:
80px
80px,
80px
0;
27 /* Mismatched layers */
29 background-image: url('../fast/backgrounds/repeat/resources/gradient.gif'), url('../fast/backgrounds/repeat/resources/gradient.gif');
30 background-position:
0 0,
0 80px;
34 background-image: url('../fast/backgrounds/repeat/resources/gradient.gif');
35 background-position:
80px
80px;
39 background-image: url('../fast/backgrounds/repeat/resources/gradient.gif');
40 background-position:
80px
80px;
44 background-image: url('../fast/backgrounds/repeat/resources/gradient.gif'), url('../fast/backgrounds/repeat/resources/gradient.gif');
45 background-position:
0 0,
0 80px;
49 <script src=
"transition-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
50 <script type=
"text/javascript" charset=
"utf-8">
52 const expectedValues = [
53 // [time, element-id, property, expected-value, tolerance]
54 [
0.5, 'box', 'background-position', [
40,
40],
2],
55 [
0.5, 'box2', 'background-position', [
40,
40],
2],
56 [
0.5, 'box3', 'background-position', [
40,
40],
2],
61 document.getElementById('box').className = 'box final';
62 document.getElementById('box2').className = 'box final';
63 document.getElementById('box3').className = 'box final';
66 runTransitionTest(expectedValues, setupTest, true);
72 <div id=
"box" class=
"box"></div>
73 <div id=
"box2" class=
"box"></div>
74 <div id=
"box3" class=
"box"></div>