danfickle / danfickle/openhtmltopdf
Paginated tables that start at top of page have incorrect header layout
Open
has failing test
has passing test
- Dominant language
- Java
- Stars
- 2.2k
- Forks
- 423
- PR merge metrics
- No merged PRs in 30d
Description
```
table {
-fs-table-paginate: paginate;
// page-break-inside: avoid;
}
th, td {
border: 1px solid black;
}
Table test
Hello1
Hello2
Hello3
Hello5
Hello6
Hello7
Hello8
Hello9
Hello10
Hello11
Hello12
Hello13
Hello14
Hello15
Hello16
Hello17
Hello18
Hello19
Hello20
Hello21
Hello22
Hello23
Hello24
Hello25
Hello26
Hello27
Hello28
Hello29
Hello30
Hello31
Hello32
Hello33
Hello34
Hello35
Hello36
Hello37
Hello38
Hello39
Hello40
Hello41
Hello42
Hello43
Hello44
Hello45
Hello46
Hello47
Hello48
Hello49
Hello50
Hello51
Hello52
Hello53
Hello54
HAHB
ab
ab
```
At least on my machine, that puts the `table` on a new page, but the first `td`'s have too much space above them, like padding in the `td`. If you add `page-break-inside: avoid` to the `table` style in the `head` section, then the error is slightly different.
I think the problem has something to do with rendering both the original `th` and the paginate one.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.