text-rotate breaks vertical-align in thead of following pages

オープン
#2,213 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
css, php
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

Guidelines
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.

Image Image

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:

Image
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>
主要言語
PHP
スター
4.7k
フォーク
1.1k
平均マージ
6日 11時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mpdf/mpdf のほかの issue

mpdf/mpdf の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。