blob: 07c53cb23445e6fe642a52093b66796c5101224d [file] [log] [blame]
<!DOCTYPE html>
<html class="reftest-wait">
<title>Composited images correctly display under large scale transform changes</title>
<meta charset="utf-8">
<link rel="match" href="image-compositing-large-scale-change-ref.html"/>
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-img-element">
<style>
html { overflow: hidden; }
#change {
will-change:transform;
width:1000px;
height:1000px;
position:absolute;
top: calc(50% - 5px);
left: calc(50% - 5px);
}
</style>
<img id="change" src="image.png"></img>
<div id="placeholder" style="position:relative"></div>
<script>
window.onload = () => {
requestAnimationFrame(() => {
requestAnimationFrame(() => {
let image = document.querySelector('#change');
image.style.transform = 'scale(20)';
placeholder.innerText = "div";
requestAnimationFrame(() => {
document.documentElement.classList.remove("reftest-wait");
});
});
});
}
</script>