| OLD | NEW | 
|---|
| 1 <!DOCTYPE> | 1 <!DOCTYPE> | 
| 2 | 2 | 
| 3 <html> | 3 <html> | 
| 4 <head> | 4 <head> | 
| 5   <style> | 5   <style> | 
| 6     .box { | 6     .box { | 
| 7       height: 100px; | 7       height: 100px; | 
| 8       width: 100px; | 8       width: 100px; | 
| 9       margin: 10px; | 9       margin: 10px; | 
| 10       -webkit-transition-duration: 1s; | 10       -webkit-transition-duration: 1s; | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 24       background: url('../fast/backgrounds/repeat/resources/gradient.gif') repea
    t 0 0; | 24       background: url('../fast/backgrounds/repeat/resources/gradient.gif') repea
    t 0 0; | 
| 25       -webkit-transition-property: -webkit-background-size; | 25       -webkit-transition-property: -webkit-background-size; | 
| 26       -webkit-background-size: 10px 10px; | 26       -webkit-background-size: 10px 10px; | 
| 27     } | 27     } | 
| 28 | 28 | 
| 29     #box2.final { | 29     #box2.final { | 
| 30       -webkit-background-size: 30px 30px; | 30       -webkit-background-size: 30px 30px; | 
| 31     } | 31     } | 
| 32 | 32 | 
| 33   </style> | 33   </style> | 
| 34   <script src="resources/transition-test-helpers.js" type="text/javascript"></sc
    ript> | 34   <script src="../animations/resources/animation-test-helpers.js" type="text/jav
    ascript"></script> | 
| 35   <script> | 35   <script> | 
| 36 | 36 | 
| 37     const expectedValues = [ | 37     const expectedValues = [ | 
| 38       // [time, element-id, property, expected-value, tolerance] | 38       // [time, element-id, property, expected-value, tolerance] | 
| 39       [0.5, 'box', 'background-position', [10, 10], 2], | 39       [0.5, 'box', 'background-position', [10, 10], 2], | 
| 40       [0.5, 'box2', '-webkit-background-size', [20, 20], 2], | 40       [0.5, 'box2', '-webkit-background-size', [20, 20], 2], | 
| 41     ]; | 41     ]; | 
| 42 | 42 | 
| 43     function setupTest() | 43     function setupTest() | 
| 44     { | 44     { | 
| 45       document.getElementById('box').className = 'box final'; | 45       document.getElementById('box').className = 'box final'; | 
| 46       document.getElementById('box2').className = 'box final'; | 46       document.getElementById('box2').className = 'box final'; | 
| 47     } | 47     } | 
| 48 | 48 | 
| 49     runTransitionTest(expectedValues, setupTest, usePauseAPI); | 49     runTransitionTest(expectedValues, setupTest, usePauseAPI); | 
| 50   </script> | 50   </script> | 
| 51 </head> | 51 </head> | 
| 52 <body> | 52 <body> | 
| 53 | 53 | 
| 54   <div id="box" class="box"></div> | 54   <div id="box" class="box"></div> | 
| 55   <div id="box2" class="box"></div> | 55   <div id="box2" class="box"></div> | 
| 56 | 56 | 
| 57   <div id="result"> | 57   <div id="result"> | 
| 58   </div> | 58   </div> | 
| 59 | 59 | 
| 60 </body> | 60 </body> | 
| 61 </html> | 61 </html> | 
| OLD | NEW | 
|---|