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/page-background-002-print.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="match" href="page-background-002-print-ref.html">
<style>
@page {
size: 300px 50px;
margin: 0;
}
body {
margin-left: 100px;
background: url(support/cat.png) no-repeat;
}
</style>
Cat head.
<div style="break-before:page;">
Cat body.
</div>
<div style="break-before:page;">
No cat parts on this page.
</div>