2008-09-06 13:35:05 +04:00
|
|
|
<!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;
|
2008-09-06 14:21:37 +04:00
|
|
|
document.documentElement.style.display = "";
|
2008-09-06 13:35:05 +04:00
|
|
|
document.body.offsetTop;
|
|
|
|
|
|
|
|
document.documentElement.style.position = "absolute";
|
|
|
|
document.body.offsetTop;
|
|
|
|
document.documentElement.style.display = "table";
|
|
|
|
document.body.offsetTop;
|
2008-09-06 14:21:37 +04:00
|
|
|
document.documentElement.style.display = "";
|
2008-09-06 13:35:05 +04:00
|
|
|
document.body.offsetTop;
|
|
|
|
|
|
|
|
document.documentElement.style.position = "fixed";
|
|
|
|
document.body.offsetTop;
|
|
|
|
document.documentElement.style.display = "table";
|
|
|
|
document.body.offsetTop;
|
2008-09-06 14:21:37 +04:00
|
|
|
document.documentElement.style.display = "";
|
|
|
|
|
|
|
|
document.documentElement.style.position = "";
|
|
|
|
document.body.offsetTop;
|
2008-09-06 13:35:05 +04:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|