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/basic-pagination-003-print.html - WPT Dashboard Interop Dashboard
<!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;
}
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>