| <!DOCTYPE html> |
| <html class="reftest-wait"> |
| <link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#background-color"> |
| <link rel="match" href="background-color-animation-fallback-additive-keyframe-ref.html"> |
| <style> |
| .container { |
| width: 100px; |
| height: 100px; |
| background-color: rgb(0, 200, 0); |
| } |
| </style> |
| <script src="/common/reftest-wait.js"></script> |
| <body> |
| <div class="container" id="target"></div> |
| |
| <script> |
| var target = document.getElementById("target"); |
| target.animate([ |
| { backgroundColor: 'rgb(200, 0, 0)', composite: 'accumulate' }, |
| { backgroundColor: 'rgb(0, 0, 0' } |
| ], { |
| duration: 1000000 |
| }); |
| requestAnimationFrame(() => { |
| takeScreenshot(); |
| }); |
| </script> |
| </body> |
| </html> |