<!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ] --> | |
<html> | |
<head> | |
<style> | |
.scroller { | |
margin: 20px; | |
width: 300px; | |
height: 300px; | |
overflow: auto; | |
border: 2px solid black; | |
padding: 10px; | |
} | |
.relative { | |
position: relative; | |
top: 50px; | |
left: 200px; | |
height: 200px; | |
width: 200px; | |
border: 2px solid orange; | |
} | |
.spacer { | |
height: 150px; | |
} | |
</style> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
window.addEventListener('load', () => { | |
if (window.internals) | |
document.getElementById('layers').textContent = internals.layerTreeAsText(document); | |
}, false); | |
</script> | |
</head> | |
<body> | |
<div class="scroller"> | |
<div> <!-- here to test that extra container don't break sharing --> | |
<div class="relative inside">relative</div> | |
</div> | |
<div class="spacer"></div> | |
</div> | |
<pre id="layers"></pre> | |
</body> | |
</html> | |