| <!DOCTYPE html><!-- webkit-test-runner [ experimental:WebAnimationsCSSIntegrationEnabled=true ] --> |
| -webkit-transition: background-color 1s linear; |
| -moz-transition: background-color 1s linear; |
| background-color: transparent; |
| background-color: rgba(0, 255, 0, 0); |
| background-color: rgba(0, 0, 255, 1); |
| <script src="resources/transition-test-helpers.js"></script> |
| <script type="text/javascript"> |
| // [time, element-id, property, expected-value, tolerance] |
| [0.5, 'one', 'background-color', [0, 127, 0], 2], |
| [0.5, 'two', 'background-color', [0, 0, 255], 2] |
| document.getElementById('one').className = 'box changed'; |
| document.getElementById('two').className = 'box changed'; |
| runTransitionTest(expectedValues, setupTest, usePauseAPI); |
| <div class="box" id="one"> |
| <div class="box" id="two"> |