blob: 967fb999bf1f6bef1a526a21240e637272b7f9b2 [file] [log] [blame]
<!doctype HTML>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<div id="target" style="overflow:scroll; width: 300px; height: 300px;">
<div style="height: 1000px; width: 100px;"></div>
</div>
<div style="position: absolute; top: 200px; width: 100px; height: 100px; background: red"></div>
<script>
// Test that a non-stacking-context scroller does not scroll an absolutely positioned child.
function test() {
runAfterLayoutAndPaint(function() {
target.scrollTop += 100;
}, true);
}
window.onload = test;
</script>