Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / background-transitions.html
blob5d5dd796a9fbb4475d57f3cf97be0159c33ec5bc
1 <!DOCTYPE>
3 <html>
4 <head>
5 <style>
6 .box {
7 height: 100px;
8 width: 100px;
9 margin: 10px;
10 -webkit-transition-duration: 1s;
11 -webkit-transition-timing-function: linear;
14 #box {
15 background: url('../fast/backgrounds/repeat/resources/gradient.gif') repeat 0 0;
16 -webkit-transition-property: background-position;
19 #box.final {
20 background-position: 20px 20px;
23 #box2 {
24 background: url('../fast/backgrounds/repeat/resources/gradient.gif') repeat 0 0;
25 -webkit-transition-property: -webkit-background-size;
26 -webkit-background-size: 10px 10px;
29 #box2.final {
30 -webkit-background-size: 30px 30px;
33 </style>
34 <script src="../animations/resources/animation-test-helpers.js" type="text/javascript"></script>
35 <script>
37 const expectedValues = [
38 // [time, element-id, property, expected-value, tolerance]
39 [0.5, 'box', 'background-position', [10, 10], 2],
40 [0.5, 'box2', '-webkit-background-size', [20, 20], 2],
43 function setupTest()
45 document.getElementById('box').className = 'box final';
46 document.getElementById('box2').className = 'box final';
49 runTransitionTest(expectedValues, setupTest);
50 </script>
51 </head>
52 <body>
54 <div id="box" class="box"></div>
55 <div id="box2" class="box"></div>
57 <div id="result">
58 </div>
60 </body>
61 </html>