| OLD | NEW | 
|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> | 
| 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: white; | 10       background-color: white; | 
| 11       outline-color: black; | 11       outline-color: black; | 
| 12       -webkit-transition-property: padding, margin, outline, background, -webkit
    -border-radius, -webkit-transform-origin; | 12       -webkit-transition-property: padding, margin, outline, background, -webkit
    -border-radius, -webkit-transform-origin; | 
| 13       -webkit-transition-duration: 1s; | 13       -webkit-transition-duration: 1s; | 
| 14       -webkit-transition-timing-function: linear; | 14       -webkit-transition-timing-function: linear; | 
| 15       -webkit-transform-origin: bottom left; | 15       -webkit-transform-origin: bottom left; | 
| 16     } | 16     } | 
| 17 | 17 | 
| 18     #box.final { | 18     #box.final { | 
| 19       padding: 10px; | 19       padding: 10px; | 
| 20       margin: 40px; | 20       margin: 40px; | 
| 21       outline: 10px solid rgb(255, 0, 255); | 21       outline: 10px solid rgb(255, 0, 255); | 
| 22       background-color: blue; | 22       background-color: blue; | 
| 23       -webkit-border-radius: 20px; | 23       -webkit-border-radius: 20px; | 
| 24       -webkit-transform-origin: top right; | 24       -webkit-transform-origin: top right; | 
| 25     } | 25     } | 
| 26 | 26 | 
| 27   </style> | 27   </style> | 
| 28   <script src="resources/transition-test-helpers.js"></script> | 28   <script src="../animations/resources/animation-test-helpers.js"></script> | 
| 29   <script type="text/javascript"> | 29   <script type="text/javascript"> | 
| 30 | 30 | 
| 31     const expectedValues = [ | 31     const expectedValues = [ | 
| 32       // [time, element-id, property, expected-value, tolerance] | 32       // [time, element-id, property, expected-value, tolerance] | 
| 33       // The transition takes 1 second, so we compute tolerance to allow | 33       // The transition takes 1 second, so we compute tolerance to allow | 
| 34       // 10% or 100ms variance, (endValue - startValue) / 10. | 34       // 10% or 100ms variance, (endValue - startValue) / 10. | 
| 35       [0.5, 'box', 'padding-top', 5, 1], | 35       [0.5, 'box', 'padding-top', 5, 1], | 
| 36       [0.5, 'box', 'margin-top', 25, 3], | 36       [0.5, 'box', 'margin-top', 25, 3], | 
| 37       [0.5, 'box', 'outline-color', [128, 0, 128], 26], | 37       [0.5, 'box', 'outline-color', [128, 0, 128], 26], | 
| 38       [0.5, 'box', 'background-color', [128, 128, 255], 26], | 38       [0.5, 'box', 'background-color', [128, 128, 255], 26], | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
| 53 | 53 | 
| 54 <p> | 54 <p> | 
| 55 Tests transitions of the shorthand properties padding, margin, outline, backgrou
    nd, -webkit-border-radius. | 55 Tests transitions of the shorthand properties padding, margin, outline, backgrou
    nd, -webkit-border-radius. | 
| 56 </p> | 56 </p> | 
| 57 <div id="box"></div> | 57 <div id="box"></div> | 
| 58 | 58 | 
| 59 <div id="result"> | 59 <div id="result"> | 
| 60 </div> | 60 </div> | 
| 61 </body> | 61 </body> | 
| 62 </html> | 62 </html> | 
| OLD | NEW | 
|---|