1
0
Fork 0
firefox/testing/web-platform/tests/css/css-page/page-box-005-print-ref.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

39 lines
936 B
HTML

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
@page {
size: 400px;
margin: 0;
}
:root {
print-color-adjust: exact;
}
body {
margin: 0;
}
.pagebox {
display: flex;
break-before: page;
height: 400px;
}
.pagearea {
margin: 50px;
border: 10px dotted;
padding: 20px;
}
</style>
<div class="pagebox">
<div class="pagearea" style="border-color:orange;">
White background (including page margins). Orange dotted border. Black text.
</div>
</div>
<div class="pagebox" style="background:yellow;">
<div class="pagearea" style="border-color:hotpink;">
Yellow background (including page margins). Hotpink dotted border. Black text.
</div>
</div>
<div class="pagebox" style="background:cyan;">
<div class="pagearea">
Cyan background (including page margins). Black dotted border. Black text.
</div>
</div>