зеркало из https://github.com/mozilla/gecko-dev.git
31 строка
898 B
HTML
31 строка
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>
|