Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="match" href="abspos-001-print-ref.html">
<style>
@page {
size: 400px 200px;
margin: 0;
}
:root {
print-color-adjust: exact;
}
body {
margin: 0;
}
</style>
<div style="position:relative;">
<div style="position:absolute; bottom:0; left:50px; width:50px; height:100px; background:green;"></div>
<div style="height:400px;">
<p>There should be a green square on the third page, and no red.</p>
</div>
<div style="width:100px; height:100px; background:red;">
<div style="width:50px; height:100px; background:green;"></div>
</div>
</div>