Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE HTML>
<html>
<body>
<div style="position:absolute;">Hello</div>
<div style="position:fixed;">Kitty</div>
<script>
document.body.offsetTop;
document.documentElement.style.display = "table";
document.body.offsetTop;
document.documentElement.style.display = "";
document.body.offsetTop;
document.documentElement.style.position = "absolute";
document.body.offsetTop;
document.documentElement.style.display = "table";
document.body.offsetTop;
document.documentElement.style.display = "";
document.body.offsetTop;
document.documentElement.style.position = "fixed";
document.body.offsetTop;
document.documentElement.style.display = "table";
document.body.offsetTop;
document.documentElement.style.display = "";
document.documentElement.style.position = "";
document.body.offsetTop;
</script>
</body>
</html>