Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| AnonymousBlockBox | 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 | * Synthesised block-level wrapper used to hold runs of inline children that |
| 9 | * appear alongside block children of a block-level parent. |
| 10 | * |
| 11 | * Per CSS Display 3 §3.4, when a block container has both inline and block |
| 12 | * children, each contiguous run of inlines gets wrapped in an anonymous |
| 13 | * block box. This keeps the formatting contexts clean — every BFC contains |
| 14 | * only block-level children, every IFC only inline-level. |
| 15 | * |
| 16 | * `$element` is always null; the box is parser-generated, not author-marked. |
| 17 | */ |
| 18 | final class AnonymousBlockBox extends Box {} |