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

PDF\HtmlToPdf\Css\Cascade
Author cascade for a single DOM; no global selector cache or resource retrieval.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(DOMDocument $document, PDF\HtmlToPdf\Parsing\ParseBudget $budget, PDF\HtmlToPdf\Diagnostics $diagnostics, PDF\HtmlToPdf\Resource\ResourceCatalog $resources = new ResourceCatalog())

Declared by PDF\HtmlToPdf\Css\Cascade · View the code ↗

Declared methods

forElement()

public function forElement(DOMElement $element): array
@return array<string,string>

Declared by PDF\HtmlToPdf\Css\Cascade · View the code ↗

inline()

public function inline(DOMElement $element, string $css): void

Declared by PDF\HtmlToPdf\Css\Cascade · View the code ↗

linkedStylesheet()

public function linkedStylesheet(string $uri, ?string $baseUri = null): void

Declared by PDF\HtmlToPdf\Css\Cascade · View the code ↗

printMedia()

public function printMedia(string $media): bool

Declared by PDF\HtmlToPdf\Css\Cascade · View the code ↗

stylesheet()

public function stylesheet(string $css, ?string $baseUri = null): void

Declared by PDF\HtmlToPdf\Css\Cascade · View the code ↗