Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
@page {
size: 400px 200px;
margin: 0;
}
:root {
print-color-adjust: exact;
}
body {
margin: 0;
}
</style>
<div style="display:flow-root; height:250px;">
<p>There should be a green square on the second and third page, and no red.</p>
</div>
<div style="width:100px; height:100px; background:green;"></div>
<div style="break-before:page; width:100px; height:100px; background:green;"></div>