danfickle / danfickle/openhtmltopdf

Repeated Table Head ignores counter-increment

Open
#110 1 comment 0 reactions 1 assignee Claimed by @danfickle View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

I encountered a problem when using ```-fs-table-paginate: paginate;``` in combination with css counters. it seems, that the repeated table head of every page is only rendered/evaluated once per table.

example code:
```html


table {
page-break-after: always;
-fs-table-paginate: paginate;
}
table::before {
/* uncommented next line for demonstration */
/* counter-reset: sub 0; */
counter-increment: sub;
content: '';
}
table th::before {
content: "Table Page " counter(sub);
}
table td::before {
counter-increment: sub;
content: "Counter Value " counter(sub) " ";
}





x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x





x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x

```
[exampe.pdf](https://github.com/danfickle/openhtmltopdf/files/1198387/exampe.pdf)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.