ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

v72 and 70 - CSS Page Counter for HTML Table displays total page count on first page and nothing on following pages

  • ما من ردود
  • 1 has this problem
  • 5 views
more options

Ran into this in developing code for a report that gets regularly printed out.

In Firefox 50.0.2 the following bit of CSS worked

@media print {

  .page-counter::after {
     counter-increment: page;
     content: "Page " counter(page);
  }

}

In my table it will display "Page 1", "Page 2", etc.

But in Firefox 70.0.1 and 72.0.1 what happens is that on the first page it says "Page 3" (or whatever the total count is) and the following pages will just say "Page".

Is this a known issue with some workaround handling?

Ran into this in developing code for a report that gets regularly printed out. In Firefox 50.0.2 the following bit of CSS worked <code> @media print { .page-counter::after { counter-increment: page; content: "Page " counter(page); } } </code> In my table it will display "Page 1", "Page 2", etc. But in Firefox 70.0.1 and 72.0.1 what happens is that on the first page it says "Page 3" (or whatever the total count is) and the following pages will just say "Page". Is this a known issue with some workaround handling?

Modified by jesse.rigg