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-box-006-print.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="match" href="page-box-006-print-ref.html">
<style>
@page {
size: 400px;
margin: 50px;
background: blue;
}
@page :first {
background: white;
}
body {
margin: 0;
background: yellow;
}
</style>
Yellow background, white page margins.
<div style="break-before:page;">
Yellow background, blue page margins.
</div>