Skip to content

Instantly share code, notes, and snippets.

@joshuabremer
Created December 30, 2017 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuabremer/fef2ffbc38c290137ccfafc7f1b54694 to your computer and use it in GitHub Desktop.
Save joshuabremer/fef2ffbc38c290137ccfafc7f1b54694 to your computer and use it in GitHub Desktop.
Firefox Can't Print This Content On Subsequent Pages
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Print bug</title>
<style>
report-page {
height: 1230px;
display: block;
position: relative;
width: 100%;
overflow: hidden;
}
report-page + report-page {
page-break-before: always;
}
html, body {
height: 100%;
width: 960px;
}
</style>
</head>
<body>
<report-page>
<header>
<table>
<tr>
<td>
<ul>
<div>This one shows up on both pages when you print</div>
<div>WHY WON'T THIS SHOW UP ON BOTH PAGES</div>
<div>THIS ONE TOO!</div>
</ul>
</td>
</tr>
</table>
</header>
</report-page>
<report-page>
<header>
<table>
<tr>
<td>
<ul>
<div>This one shows up on both pages when you print</div>
<div>WHY WON'T THIS SHOW UP ON BOTH PAGES</div>
<div>THIS ONE TOO!</div>
</ul>
</td>
</tr>
</table>
</header>
</report-page>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment