WeasyPrint icon indicating copy to clipboard operation
WeasyPrint copied to clipboard

`counter-reset: footnote` is not working inside `@page`

Open igor-makarov opened this issue 3 months ago • 1 comments

I am using the print-css.rocks footnotes example.

I've added extra lorem ipsum text in between the footnotes so that it pushes the second footnote to a second page.

However, this does not reset the counter. The footnote on page 2 is still numbered "2".

My suspicion is that this bit is not working:

@page {
    counter-reset: footnote 0;
}

Trying counter-reset: footnote; also doesn't work.

I double-checked the W3C draft regarding counter reset and I'm pretty sure it's supposed to work.

This works in Prince, not that it is by any means authoritative.

Thanks for looking into this!

igor-makarov avatar Sep 13 '25 16:09 igor-makarov

Thanks for the report, I’ll try to find what’s wrong!

liZe avatar Sep 13 '25 19:09 liZe