blob: e00f138814f71c8352d12ff641260c32cf425925 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
height: 2000px;
}
.box {
width: 200px;
height: 200px;
}
.sticky {
position: -webkit-sticky;
top: 100px;
background-color: green;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function doTest()
{
var stickyBox = document.getElementById('sticky');
stickyBox.parentNode.removeChild(stickyBox);
window.scrollTo(0, 10);
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<p>This test should not crash</p>
<div id="sticky" class="sticky box"></div>
</body>
</html>