text-rotate breaks vertical-align in thead of following pages
Maintainers usually reply within 5 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce with the snippet in the report: a long table whose thead cells use text-rotate and vertical-align, rendered to PDF with mPDF 8.3.1. Compare the header on page one with the repeated header on page two to see where the vertical alignment is lost. Done means repeated header cells keep the rotated label's vertical alignment on every page, matching page one.
Written by the indexing model from the issue text.
Description
Guidelines
- I understand that if I fail to adhere to contribution guidelines and/or fail to provide all required details, this issue may be closed without review.
Description of the bug
Having a long table containing a thead with table cells having the text-rotate and vertical-align css property set get displayed as intent on page one. However when the table is long enough to require several pages, the thead gets repeated as expected but the vertical-align gets ignored.
As one can see on the middle columns of this report, representing the day, page one centers the labels, page two places them on the bottom of the header. There is nothing page specific set. Even more odd, declaring the header cell like <th style="width: 4mm; vertical-align: middle !important; text-rotate: 90;"> the label gets printed above the cell on page one like this:
mPDF version
8.3.1
PHP Version and environment (server type, cli provider etc., enclosing libraries and their respective versions)
8.4
Reproducible PHP+CSS+HTML snippet suffering by the error
Its basically:
<table>
<thead>
<tr><th style="height: 4cm; width: 4mm; vertical-align: middle; text-rotate: 90;">Header</th>...<tr>
...
</thead>
<tbody>
...Enough Data to fill more than one page...
</tbody>
- Dominant language
- PHP
- Stars
- 4.7k
- Forks
- 1.1k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mpdf/mpdf
-
SVG path arcs with an explicit zero radius throw DivisionByZeroErrorPossibly taken @Syed-Shehroz-Sohail claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 5 days
-
Closing a column set with an image in it leaves the cursor below the page, wasting the rest of itOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 5 days
-
8.3: Local fallback for external stylesheets is inverted in CssLoader (basepathIsLocal check negated) — CSS silently dropped when remote fetch failsPossibly taken @hemreduru claimed this 12 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 5 days
-
Tag/Td.php silently clears cell top/bottom borders when a row has a partial border (plus two warnings and a deprecation)Possibly taken @alizamani1616 claimed this 61 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 5 days
-
AdjustHTML() collapses multiple spaces inside quoted attribute values (src, href)Possibly taken @sornapudisuresh claimed this 130 days ago. Openbug/fix help wanted HTML/CSS support
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 5 days
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
sync-en
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Перевод устарел
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day