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

PDF\HtmlToPdf\Css\Values
Narrow, explicit supported CSS value grammars.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Declared methods

color()

public function color(string $value, PDF\HtmlToPdf\Style\Color $current): ?PDF\HtmlToPdf\Style\Color

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

keyword()

public function keyword(string $value, array $allowed): string
@param list<string> $allowed

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

length()

public function length(string $value, float $fontSize, float $rootSize, bool $percentage = false, bool $negative = false): PDF\HtmlToPdf\Style\Length|float

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

points()

public function points(string $value, float $fontSize, float $rootSize, bool $negative = false): float

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

positiveInteger()

public function positiveInteger(string $value): int

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