chromium/third_party/blink/web_tests/external/wpt/css/css-anchor-position/anchor-scroll-composited-scrolling-005-crash.html

<!DOCTYPE html>
<html class="test-wait">
<title>Tests that scrolling doesn't crash renderer with `overflow: hidden` scroller</title>
<link rel="author" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-anchor-1/">

<style>
#scroller {
  margin-top: 200px;
  height: 200px;
  overflow-y: hidden;
}

#anchor {
  anchor-name: --a;
}

#spacer {
  height: 400px;
}

#target {
  position: fixed;
  top: anchor(bottom);
  left: anchor(left);
  position-anchor: --a;
}
</style>

<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));

scroller.scrollTop = 100;

await raf();
await raf();

scroller.scrollTop = 0;

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

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