class final readonly Optional · pdftoolkit/html-to-pdf 0.4.0

PDF\HtmlToPdf\Layout\MarginCollapser
Positive CSS adjoining margins form one maximum, including through empty blocks.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Declared methods

collapse()

public function collapse(array $items): array
@param list<FlowItem> $items
@return list<FlowItem>

Declared by PDF\HtmlToPdf\Layout\MarginCollapser · View the code ↗

firstInFlow()

public function firstInFlow(array $items): ?PDF\HtmlToPdf\Layout\FlowItem
@param list<FlowItem> $items

Declared by PDF\HtmlToPdf\Layout\MarginCollapser · View the code ↗