| 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 position: absolute; | 7 position: absolute; |
| 8 height: 100px; | 8 height: 100px; |
| 9 width: 100px; | 9 width: 100px; |
| 10 left: 0px; | 10 left: 0px; |
| 11 top: 0px; | 11 top: 0px; |
| 12 background-color: blue; | 12 background-color: blue; |
| 13 transition-duration: 1s; | 13 transition-duration: 1s; |
| 14 transition-timing-function: linear; | 14 transition-timing-function: linear; |
| 15 transition-property: top, counter-increment, overflow, transition-duration
; | 15 transition-property: top, counter-increment, overflow, transition-duration
; |
| 16 } | 16 } |
| 17 </style> | 17 </style> |
| 18 <script src="../animations/resources/animation-test-helpers.js"></script> | 18 <script src="../animations/resources/animation-test-helpers.js"></script> |
| 19 <script type="text/javascript"> | 19 <script type="text/javascript"> |
| 20 const expectedValues = [ | 20 const expectedValues = [ |
| 21 // [time, element-id, property, expected-value, tolerance] | 21 // [time, element-id, property, expected-value, tolerance] |
| 22 [0.10, "box", "counter-increment", ["counter", 2], 0], | 22 [0.10, "box", "counter-increment", "counter 2", 0], |
| 23 [0.10, "box", "overflow", "hidden", 0], | 23 [0.10, "box", "overflow", "hidden", 0], |
| 24 [0.10, "box", "transition-duration", [500,500,500,500], 0], | 24 [0.10, "box", "transition-duration", "0.5s", 0], |
| 25 [0.25, "box", "top", 25, 5], | 25 [0.25, "box", "top", 25, 5], |
| 26 [0.40, "box", "counter-increment", ["counter", 2], 0], | 26 [0.40, "box", "counter-increment", "counter 2", 0], |
| 27 [0.40, "box", "overflow", "hidden", 0], | 27 [0.40, "box", "overflow", "hidden", 0], |
| 28 [0.40, "box", "transition-duration", [500,500,500,500], 0], | 28 [0.40, "box", "transition-duration", "0.5s", 0], |
| 29 ]; | 29 ]; |
| 30 | 30 |
| 31 function setupTest() | 31 function setupTest() |
| 32 { | 32 { |
| 33 box.style.top = "50px"; | 33 box.style.top = "50px"; |
| 34 box.style.overflow = "hidden"; | 34 box.style.overflow = "hidden"; |
| 35 box.style.counterIncrement = "counter 2"; | 35 box.style.counterIncrement = "counter 2"; |
| 36 box.style.transitionDuration = "0.5s"; | 36 box.style.transitionDuration = "0.5s"; |
| 37 } | 37 } |
| 38 | 38 |
| 39 runTransitionTest(expectedValues, setupTest); | 39 runTransitionTest(expectedValues, setupTest); |
| 40 </script> | 40 </script> |
| 41 </head> | 41 </head> |
| 42 <body> | 42 <body> |
| 43 <p>Tests that transitions ignore unanimatable properties.</p> | 43 <p>Tests that transitions ignore unanimatable properties.</p> |
| 44 <div id="box"></div> | 44 <div id="box"></div> |
| 45 <div id="result"></div> | 45 <div id="result"></div> |
| 46 </body> | 46 </body> |
| 47 </html> | 47 </html> |
| OLD | NEW |