mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
31 lines
898 B
HTML
31 lines
898 B
HTML
<!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>
|