| OLD | NEW | 
|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> | 
| 2 | 2 | 
| 3 <html> | 3 <html> | 
| 4 <head> | 4 <head> | 
| 5     <style type="text/css" media="screen"> | 5     <style type="text/css" media="screen"> | 
| 6         .box { | 6         .box { | 
| 7             height: 100px; | 7             height: 100px; | 
| 8             width: 100px; | 8             width: 100px; | 
| 9             margin: 20px; | 9             margin: 20px; | 
| 10             background-color: blue; | 10             background-color: blue; | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 23         /* Test that fill-mode: backwards works */ | 23         /* Test that fill-mode: backwards works */ | 
| 24         #movers.moved > #filledbox { | 24         #movers.moved > #filledbox { | 
| 25             -webkit-animation: move 1s 1s linear backwards; | 25             -webkit-animation: move 1s 1s linear backwards; | 
| 26         } | 26         } | 
| 27 | 27 | 
| 28         @-webkit-keyframes move { | 28         @-webkit-keyframes move { | 
| 29             from { -webkit-transform: translateX(100px);   } | 29             from { -webkit-transform: translateX(100px);   } | 
| 30             to   { -webkit-transform: translateX(400px); } | 30             to   { -webkit-transform: translateX(400px); } | 
| 31         } | 31         } | 
| 32     </style> | 32     </style> | 
| 33     <script src="../../transitions/resources/transition-test-helpers.js" type="t
    ext/javascript" charset="utf-8"></script> | 33     <script src="../../animations/resources/animation-test-helpers.js" type="tex
    t/javascript" charset="utf-8"></script> | 
| 34     <script type="text/javascript" charset="utf-8"> | 34     <script type="text/javascript" charset="utf-8"> | 
| 35 | 35 | 
| 36         const expectedValues = [ | 36         const expectedValues = [ | 
| 37           // [time, element-id, property, expected-value, tolerance] | 37           // [time, element-id, property, expected-value, tolerance] | 
| 38           [0.1, 'testbox', '-webkit-transform.4', 0, 0], | 38           [0.1, 'testbox', '-webkit-transform.4', 0, 0], | 
| 39           [0.1, 'changedbox', '-webkit-transform.4', 50, 0], | 39           [0.1, 'changedbox', '-webkit-transform.4', 50, 0], | 
| 40           [0.1, 'filledbox', '-webkit-transform.4', 100, 0], | 40           [0.1, 'filledbox', '-webkit-transform.4', 100, 0], | 
| 41         ]; | 41         ]; | 
| 42 | 42 | 
| 43         function setupTest() | 43         function setupTest() | 
| 44         { | 44         { | 
| 45           document.getElementById('movers').className = 'moved'; | 45           document.getElementById('movers').className = 'moved'; | 
| 46         } | 46         } | 
| 47 | 47 | 
| 48         runTransitionTest(expectedValues, setupTest, false /* use pause API */); | 48         runTransitionTest(expectedValues, setupTest, false /* use pause API */); | 
| 49     </script> | 49     </script> | 
| 50 </head> | 50 </head> | 
| 51 <body> | 51 <body> | 
| 52     <p>Test computed style during the delay phase of an accelerated animation.</
    p> | 52     <p>Test computed style during the delay phase of an accelerated animation.</
    p> | 
| 53     <div id="movers"> | 53     <div id="movers"> | 
| 54         <div id="testbox" class="box"></div> | 54         <div id="testbox" class="box"></div> | 
| 55         <div id="changedbox" class="box"></div> | 55         <div id="changedbox" class="box"></div> | 
| 56         <div id="filledbox" class="box"></div> | 56         <div id="filledbox" class="box"></div> | 
| 57     </div> | 57     </div> | 
| 58     <div id="result"> | 58     <div id="result"> | 
| 59     </div> | 59     </div> | 
| 60 </body> | 60 </body> | 
| 61 </html> | 61 </html> | 
| OLD | NEW | 
|---|