17 lines
506 B
HTML
17 lines
506 B
HTML
<html>
|
|
<head>
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
The purple box should stick to the bottom of the window.
|
|
<script>
|
|
document.body.offsetTop; // Force layout now.
|
|
</script>
|
|
<div style="height: 2000px; width: 1px; position: absolute;">
|
|
</div>
|
|
<div style="position: fixed; bottom: 0; height: 100px; width: 100px; background: purple;"></div>
|
|
<!-- Try to load a resource. -->
|
|
<span style="display: none; background-image: url(data:image/png,);"></span>
|
|
</body>
|
|
</html>
|