Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class="reftest-wait">
<title>image-animation: running creates per-element timeline (unsynced between elements)</title>
<meta charset="utf-8" />
<link rel="match" href="image-animation-img-running.tentative-ref.html" />
<script src="/common/reftest-wait.js"></script>
<script>
let count = 0;
function loaded() {
count++;
if (count === 1) {
setTimeout(() => {
document.getElementById('img2').src = '../../images/anim-gr.gif';
}, 125);
}
if (count === 2) {
takeScreenshot();
}
}
</script>
<style>
img {
image-animation: running;
}
</style>
<img id="img1" src="../../images/anim-gr.gif" onload="loaded()" />
<img id="img2" onload="loaded()" />
</html>