<!DOCTYPE html>
<script>
if (window.testRunner)
testRunner.setPrinting();
</script>
<style>
body {
margin: 0;
}
</style>
<div style="position:absolute; top:350vh;">Only on the fourth page</div>
<div style="position:fixed;">On every page</div>