Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| TableBox | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\HtmlToPdf\Box; |
| 6 | |
| 7 | /** |
| 8 | * `display: table` — block-level wrapper around row groups / rows / cells. |
| 9 | * Phase-1 layout treats it as a block that hosts one or more |
| 10 | * {@see TableRowBox}es; CSS Tables 3 §3 automatic column-width / table- |
| 11 | * caption / multi-section layout lands in a follow-up. |
| 12 | */ |
| 13 | final class TableBox extends Box |
| 14 | { |
| 15 | /** |
| 16 | * CSS 2.1 §17.5.1 background layers 2 (column groups) and 3 |
| 17 | * (columns), in paint order, each with the column range it covers. |
| 18 | * `<col>` / `<colgroup>` generate no boxes of their own, so the |
| 19 | * painter needs this to know which cells each one's background |
| 20 | * reaches. |
| 21 | * |
| 22 | * @var list<array{box: TableColumnBox, start: int, span: int}> |
| 23 | */ |
| 24 | public array $columnLayers = []; |
| 25 | } |