AtPageRule

[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

CSS::Stylesheet v0.1.0

CSS Stylesheet representation

Authors

  • David Warring

License

Artistic-2.0

Dependencies

CSS::Font::Resources:ver<0.0.5+>CSS::Module:ver<0.5.8+>CSS::Properties:ver<0.7.5+>CSS::Selector::To::XPathCSS::Writer:ver<0.2.8+>Method::AlsoURI:ver<0.3.3+>

Test Dependencies

Provides

  • CSS::AtPageRule
  • CSS::Media
  • CSS::MediaQuery
  • CSS::Ruleset
  • CSS::Selectors
  • CSS::Stylesheet

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.