PrintCssPageSelectors

@page selectors for printed pages, processed by the browser's print engine or by Paged.js.

Since @page pseudo-class selectors cannot be comma-separated, each page in a range produces its own selector string.

  • null: ["@page"]

  • Side-only: ["@page:left"]

  • Range-only: ["@page:nth(1)", "@page:nth(2)", ...]

  • Side + range: ["@page:nth(1):left", "@page:nth(2):left", ...]

Properties

Link copied to clipboard
open override val isPageBox: Boolean = true

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
open override fun toCss(selector: PageFormatSelector?): List<String>

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