| <!DOCTYPE html> |
| |
| <html> |
| <head> |
| <style> |
| #box { |
| position: absolute; |
| height: 100px; |
| width: 100px; |
| left: 0px; |
| top: 0px; |
| background-color: blue; |
| transition-duration: 1s; |
| transition-timing-function: linear; |
| transition-property: top, counter-increment, overflow, transition-duration; |
| } |
| </style> |
| <script src="../animations/resources/animation-test-helpers.js"></script> |
| <script type="text/javascript"> |
| const expectedValues = [ |
| // [time, element-id, property, expected-value, tolerance] |
| [0.10, "box", "counter-increment", "counter 2", 0], |
| [0.10, "box", "overflow", "hidden", 0], |
| [0.10, "box", "transition-duration", "0.5s", 0], |
| [0.25, "box", "top", 25, 5], |
| [0.40, "box", "counter-increment", "counter 2", 0], |
| [0.40, "box", "overflow", "hidden", 0], |
| [0.40, "box", "transition-duration", "0.5s", 0], |
| ]; |
| |
| function setupTest() |
| { |
| box.style.top = "50px"; |
| box.style.overflow = "hidden"; |
| box.style.counterIncrement = "counter 2"; |
| box.style.transitionDuration = "0.5s"; |
| } |
| |
| runTransitionTest(expectedValues, setupTest); |
| </script> |
| </head> |
| <body> |
| <p>Tests that transitions ignore unanimatable properties.</p> |
| <div id="box"></div> |
| <div id="result"></div> |
| </body> |
| </html> |