Packagedom.style.css
Classpublic class CSSPageRule
InheritanceCSSPageRule Inheritance CSSRule Inheritance Object

Introduced in: DOM 2 Core 

The CSSPageRule interface represents a @page rule within a CSS style sheet. The @page rule is used to specify the dimensions, orientation, margins, etc. of a page box for paged media.

See also

MSDN - @page Rule
MDC - cssRule: CSSPageRule
W3C - DOM Level 2 Style: CSSPageRule


Public Properties
 PropertyDefined By
 InheritedDOM 2 Style cssText : DOMString
[read-only] The parsable textual representation of the rule.
CSSRule
 InheritedDOM 2 Style parentRule : CSSRule
[read-only] If this rule is contained inside another rule (e.g.
CSSRule
 InheritedDOM 2 Style parentStyleSheet : CSSStyleSheet
[read-only] The style sheet that contains this rule.
CSSRule
  DOM 2 Style selectorText : DOMString
[read-only] The parsable textual representation of the page selector for the rule.
CSSPageRule
  DOM 2 Style style : CSSStyleDeclaration
[read-only] The declaration-block of this rule.
CSSPageRule
 InheritedDOM 2 Style type : Number
[read-only] The type of the rule, as defined above.
CSSRule
Public Constants
 ConstantDefined By
 InheritedDOM 2 Style CHARSET_RULE : Number = 2
The rule is a CSSCharsetRule.
CSSRule
 InheritedDOM 2 Style FONT_FACE_RULE : Number = 5
The rule is a CSSFontFaceRule.
CSSRule
 InheritedDOM 2 Style IMPORT_RULE : Number = 3
The rule is a CSSImportRule.
CSSRule
 InheritedDOM 2 Style MEDIA_RULE : Number = 4
The rule is a CSSMediaRule.
CSSRule
 InheritedDOM 2 Style PAGE_RULE : Number = 6
The rule is a CSSPageRule.
CSSRule
 InheritedDOM 2 Style STYLE_RULE : Number = 1
The rule is a CSSStyleRule.
CSSRule
 InheritedDOM 2 Style UNKNOWN_RULE : Number = 0
The rule is a CSSUnknownRule.
CSSRule
Property Detail
DOM 2 Style selectorTextproperty
selectorText:DOMString  [read-only]

Introduced in: DOM 2 Core 

The parsable textual representation of the page selector for the rule.


Implementation
    public function get selectorText():DOMString

Throws
DOMException — SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
 
DOMException — NO_MODIFICATION_ALLOWED_ERR: Raised if this rule is readonly.

See also

DOM 2 Style styleproperty 
style:CSSStyleDeclaration  [read-only]

Introduced in: DOM 2 Core 

The declaration-block of this rule.


Implementation
    public function get style():CSSStyleDeclaration

See also