<!DOCTYPE html>
<html>
<style>
.sized {
    width: 100px;
    height: 100px;
}
.overflow {
    overflow: hidden;
}
.relative {
    position: relative;
}
.absolute {
	position: absolute;
}
</style>
<body>
    <div class="sized overflow">
        <div class="sized relative">
            <div class="sized overflow" id="root">
            </div>
        </div>
    </div>
Test passes if it doesn't assert.
<script>
if (window.testRunner)
	testRunner.dumpAsText();

document.body.offsetTop;
var container = document.createElement("div");
var layoutSkippedObject = document.createElement("div");
layoutSkippedObject.className = "absolute hidden";

container.appendChild(layoutSkippedObject);

var root = document.getElementById("root");
root.appendChild(container);

layoutSkippedObject.offsetTop;
</script>