OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script> | 2 <script> |
3 if (window.testRunner) | 3 if (window.testRunner) |
4 testRunner.waitUntilDone(); | 4 testRunner.waitUntilDone(); |
5 onload = function() { | 5 onload = function() { |
6 var animated = document.getElementById('animated'); | 6 var animated = document.getElementById('animated'); |
7 animated.addEventListener('transitionend', function() { | 7 animated.addEventListener('transitionend', function() { |
8 if (window.testRunner) | 8 if (window.testRunner) |
9 testRunner.notifyDone(); | 9 testRunner.notifyDone(); |
10 }); | 10 }); |
(...skipping 25 matching lines...) Expand all Loading... |
36 position: absolute; | 36 position: absolute; |
37 top: 300px; | 37 top: 300px; |
38 } | 38 } |
39 </style> | 39 </style> |
40 <div id="background"></div> | 40 <div id="background"></div> |
41 <div id="animated"><div id="foreground"></div></div> | 41 <div id="animated"><div id="foreground"></div></div> |
42 <div id="description"> | 42 <div id="description"> |
43 Tests paint invalidation on end of opacity transition.<br> | 43 Tests paint invalidation on end of opacity transition.<br> |
44 Passes if there is a green square and no red.<br> | 44 Passes if there is a green square and no red.<br> |
45 </div> | 45 </div> |
OLD | NEW |