<!DOCTYPE html><!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ] --> | |
<body style="height: 2000px;"> | |
<pre id="log"></pre> | |
<div id="scrollable" style="width: 50px; height: 50px; overflow: scroll;"> | |
<div style="width: 100px; height: 100px; background: fixed linear-gradient(to bottom right, red, yellow);"></div> | |
</div> | |
<script> | |
if (window.testRunner && window.internals) | |
onload = () => { testRunner.dumpAsText(); log.textContent = internals.scrollingStateTreeAsText() }; | |
</script> |