Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div></div>
<script>
"use strict";
// This function is called from test.
// eslint-disable-next-line
function startMutation() {
const target = document.querySelector("div");
const animation = target.animate({ opacity: [1, 0] }, 100000);
animation.currentTime = 1;
animation.cancel();
}
</script>
</body>
</html>