| 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: relative; | 7 position: relative; |
| 8 width: 100px; | 8 width: 100px; |
| 9 height: 100px; | 9 height: 100px; |
| 10 border: 1px solid black; | 10 border: 1px solid black; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 left: 0; | 30 left: 0; |
| 31 background-color: blue; | 31 background-color: blue; |
| 32 -webkit-transition: left 1s linear; | 32 -webkit-transition: left 1s linear; |
| 33 } | 33 } |
| 34 | 34 |
| 35 #container.animating #transition-tester { | 35 #container.animating #transition-tester { |
| 36 left: 20px; | 36 left: 20px; |
| 37 } | 37 } |
| 38 | 38 |
| 39 </style> | 39 </style> |
| 40 <script src="../../transitions/resources/transition-test-helpers.js"></script> | 40 <script src="../../animations/resources/animation-test-helpers.js"></script> |
| 41 <script> | 41 <script> |
| 42 const expectedValues = [ | 42 const expectedValues = [ |
| 43 // [time, element-id, property, expected-value, tolerance] | 43 // [time, element-id, property, expected-value, tolerance] |
| 44 [0.5, 'transition-tester', 'left', 10, 2], | 44 [0.5, 'transition-tester', 'left', 10, 2], |
| 45 ]; | 45 ]; |
| 46 | 46 |
| 47 function setupTest() | 47 function setupTest() |
| 48 { | 48 { |
| 49 document.getElementById('container').className = 'animating'; | 49 document.getElementById('container').className = 'animating'; |
| 50 } | 50 } |
| 51 | 51 |
| 52 runTransitionTest(expectedValues, setupTest, usePauseAPI); | 52 runTransitionTest(expectedValues, setupTest, usePauseAPI); |
| 53 </script> | 53 </script> |
| 54 </head> | 54 </head> |
| 55 <body> | 55 <body> |
| 56 | 56 |
| 57 <p>Tests that starting an animation on an element inside a visibility:hidden ele
ment does not block later transitions.</p> | 57 <p>Tests that starting an animation on an element inside a visibility:hidden ele
ment does not block later transitions.</p> |
| 58 <div id="container" class="container"> | 58 <div id="container" class="container"> |
| 59 <div id="transition-tester" class="box"></div> | 59 <div id="transition-tester" class="box"></div> |
| 60 | 60 |
| 61 <div class="middle box"> | 61 <div class="middle box"> |
| 62 <div class="inner box"></div> | 62 <div class="inner box"></div> |
| 63 </div> | 63 </div> |
| 64 </div> | 64 </div> |
| 65 | 65 |
| 66 <div id="result"></div> | 66 <div id="result"></div> |
| 67 | 67 |
| 68 </body> | 68 </body> |
| 69 </html> | 69 </html> |
| OLD | NEW |