Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-page/fixedpos-006-print.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="match" href="fixedpos-006-print-ref.html">
<style>
body { margin: 0; }
</style>
There should be five pages.
<div style="position:fixed; bottom:4em;">
This should repeat on every page.
</div>
<div style="position:absolute; top:100vh;">
This should be on the second page.
<div style="position:fixed; bottom:2em;">
This should also repeat on every page.
</div>
<div style="position:absolute; top:100vh; height:300vh;">
This should be on the third page.
<div style="position:fixed; bottom:0;">
Even this should repeat on every page.
</div>
</div>
</div>