View on GitHub

CSS-Stylesheet-raku

CSS Stylesheet representation

[Raku CSS Project] / [CSS-Stylesheet] / CSS::AtPageRule

class CSS::AtPageRule

@page at-rule representation, including margin boxes

has Str $.pseudo-class

(optional) .e.g. ‘left’, ‘right’, ‘first’

has CSS::Properties(Any) $.properties

Top-level CSS properties

has Associative[CSS::Properties(Any)] %.margin-box

Per page margin CSS properties

method ast

method ast(
    |c
) returns Mu

return AST representation of a single @page at-rule

method Str

method Str(
    :$optimize = Bool::True,
    Bool :$terse = Bool::True,
    *%opt
) returns Mu

serialize a @page rule to CSS