Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="match" href="basic-pagination-003-print-ref.html">
<style>
@page {
size: 293px;
margin: 5px;
}
:root {
print-color-adjust: exact;
}
body {
margin: 0;
background: yellow;
}
div {
/* Forced breaks defeat break avoidance hints. */
break-before: page;
break-after: avoid;
}
</style>
<div>Page one</div>
<div>Page two</div>