| 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       background-color: blue; | 10       background-color: blue; | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 24 | 24 | 
| 25     #box2 { | 25     #box2 { | 
| 26       -webkit-transition-property: -webkit-mask-size; | 26       -webkit-transition-property: -webkit-mask-size; | 
| 27     } | 27     } | 
| 28 | 28 | 
| 29     #box2.final { | 29     #box2.final { | 
| 30       -webkit-mask-size: 200px 200px; | 30       -webkit-mask-size: 200px 200px; | 
| 31     } | 31     } | 
| 32 | 32 | 
| 33   </style> | 33   </style> | 
| 34   <script src="resources/transition-test-helpers.js"></script> | 34   <script src="../animations/resources/animation-test-helpers.js"></script> | 
| 35   <script type="text/javascript"> | 35   <script type="text/javascript"> | 
| 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', '-webkit-mask-position-x', 10, 4], | 39       [0.5, 'box', '-webkit-mask-position-x', 10, 4], | 
| 40       [0.5, 'box', '-webkit-mask-position-y', 10, 4], | 40       [0.5, 'box', '-webkit-mask-position-y', 10, 4], | 
| 41       [0.5, 'box2', '-webkit-mask-size', [150, 150], 20], | 41       [0.5, 'box2', '-webkit-mask-size', [150, 150], 20], | 
| 42     ]; | 42     ]; | 
| 43 | 43 | 
| 44     function setupTest() | 44     function setupTest() | 
| 45     { | 45     { | 
| 46       document.getElementById('box').className = 'box final'; | 46       document.getElementById('box').className = 'box final'; | 
| 47       document.getElementById('box2').className = 'box final'; | 47       document.getElementById('box2').className = 'box final'; | 
| 48     } | 48     } | 
| 49 | 49 | 
| 50     runTransitionTest(expectedValues, setupTest, usePauseAPI); | 50     runTransitionTest(expectedValues, setupTest, usePauseAPI); | 
| 51   </script> | 51   </script> | 
| 52 </head> | 52 </head> | 
| 53 <body> | 53 <body> | 
| 54 | 54 | 
| 55   <div id="box" class="box"></div> | 55   <div id="box" class="box"></div> | 
| 56   <div id="box2" class="box"></div> | 56   <div id="box2" class="box"></div> | 
| 57 | 57 | 
| 58   <div id="result"> | 58   <div id="result"> | 
| 59   </div> | 59   </div> | 
| 60 | 60 | 
| 61 </body> | 61 </body> | 
| 62 </html> | 62 </html> | 
| OLD | NEW | 
|---|