<!DOCTYPE html>
<script src="../resources/text-based-repaint.js"></script>
<script>
window.testIsAsync = true;
function repaintTest() {
if (window.internals)
internals.advanceImageAnimation(targetImage);
requestAnimationFrame(function() {
finishRepaintTest();
});
}
function targetImageOnload() {
targetDiv.style.transform = "translateY(-1000px)";
runRepaintTest();
}
window.onload = function() {
targetImage.onload = targetImageOnload;
targetImage.src = "../../../svg/as-image/resources/animated-rect-fixed-size-2.svg";
}
</script>
<div id="targetDiv" style="height: 2000px; width: 2000px; will-change: transform">
<img id="targetImage">
</div>