Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/embedded-content/the-img-element/animated-image-update.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>Animated image active frame update when passing delay time</title>
<link rel="match" href="animated-image-update-ref.tentative.html">
<link rel="author" title="Tin Tun Aung" href="mailto:rayguo17@gmail.com">
<script src="/common/reftest-wait.js"></script>
</head>
<body>
<img id="image" src="resources/animated.gif">
<script>
const image = document.getElementById('image');
requestAnimationFrame(()=>{
setTimeout(() => {
takeScreenshot();
}, 150);
})
</script>
</body>
</html>