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-webp-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.webp" />
<script>
const image = document.getElementById("image");
requestAnimationFrame(() => {
setTimeout(() => {
takeScreenshot();
}, 150);
});
</script>
</body>
</html>