Here is a piece of HTML/CSS code, which should print, thanks to CSS' counters, the page number in footer when printed :
<html>
<head>
<style type="text/css">
body {
counter-reset: page;
}
div.footer {
display: table-footer-group;
position: fixed;
bottom: 0pt;
right: 0pt;
}
div.footer:after {
counter-increment: page;
content: "Page " counter(page);
}
p {
page-break-after: always;
}
</style>
</head>
<body>
<div class="footer"></div>
<p>Hello world page 1</p>
<p>Hello world page 2</p>
</body>
</html>
The fact is, with Firefox 79.0, I get "Page 1" on first page, and "Page" on second. With Chrome 84.0, I get "Page 1" on both pages.
I tried to use @page at-rule, native "page" counter (as described on w3), I still can't find what I'm missing.
Thanks a lot for your help :)