CssPageSelectors

sealed interface CssPageSelectors

Strategy that converts a PageFormatSelector into CSS selectors matching the targeted pages.

Each document type lays out its pages differently, hence the elements that represent a page in CSS differ: printed pages are addressed through @page at-rules (PrintCssPageSelectors), while slides are regular DOM elements (SlidesCssPageSelectors).

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val isPageBox: Boolean

Whether the produced selectors address CSS page boxes (@page at-rules), which accept print-only properties such as size and margin.

Functions

Link copied to clipboard
abstract fun toCss(selector: PageFormatSelector?): List<String>

Converts a selector into the CSS selectors matching the pages it targets.