Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-image-animation/image-animation-background-paused-late-add.html
<!DOCTYPE html> <html class="reftest-wait"> <title>pausing animated image for a later-added background layer</title> <link rel="help" href="https://drafts.csswg.org/css-image-animation-1/"> <meta charset="utf-8" /> <link rel="match" href="image-animation-background-paused-late-add-ref.html" /> <script src="/common/reftest-wait.js"></script> <style> #box { width: 40px; height: 10px; background-image: url("../../images/anim-gr.gif"); background-repeat: no-repeat; background-position: 0 0; image-animation: paused; } </style> <div id="box"></div> <script> window.addEventListener("load", () => { requestAnimationFrame(() => { const box = document.getElementById('box'); box.style.backgroundImage = 'url("../../images/anim-gr.gif"), url("../../images/anim-gr.gif")'; box.style.backgroundPosition = '0 0, 20px 0'; takeScreenshotDelayed(300); }); }); </script> </html>
/css/css-image-animation/image-animation-background-paused-late-add-ref.html
<!DOCTYPE html> <style> #box { width: 40px; height: 10px; background-image: url("../../images/green.png"), url("../../images/green.png"); background-repeat: no-repeat; background-position: 0 0, 20px 0; } </style> <div id="box"></div>