1
0
Fork 0
firefox/testing/web-platform/tests/css/css-page/margin-boxes/content-004-print.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

32 lines
886 B
HTML

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-page-3/#page-based-counters">
<meta name="assert" content="Test counter(page) and counter(pages) in page margin boxes">
<link rel="match" href="content-004-print-ref.html">
<style>
@page {
margin: 4em;
@top-center {
text-align: left;
vertical-align: top;
content: "Page " counter(page) " of " counter(pages);
}
@bottom-center {
text-align: left;
vertical-align: top;
content: "Page " counter(page) " of " counter(pages);
}
}
body {
margin: 0;
}
</style>
Every page should display the current page and the total page count in both the
header and footer.
<div style="break-before:page;">
Another page
</div>
<div style="break-before:page;">
Yet another page
</div>