

<div id="scroller">
  <div id="spacer"></div>
  <div id="anchor">anchor</div>
</div>
<div id="target">target</div>

<script type="module">
const raf = () => new Promise(resolve => requestAnimationFrame(resolve));

await raf();
await raf();

scroller.style.overflowY = 'visible';

// Force paint property update on target in the same frame
target.style.transform = 'scale(1)';

document.documentElement.classList.remove('test-wait');
</script>
</html>
