NAME
CSS::DOM::Rule - CSS rule class for CSS::DOM
VERSION
Version 0.02
SYNOPSIS
use CSS::DOM;
# ...
DESCRIPTION
This module provides the CSS rule class for CSS::DOM. It inherits from CSS::Style and implements the CSSRule DOM interface.
METHODS
- type
-
Returns one of the constants below indicating the type of rule.
- cssText
-
Returns this rule's CSS code. If you pass an argument, it will be parsed as the new CSS code for this rule (replacing the existing data), and the old value will be returned.
- parentStyleSheet
- parentRule
-
(These two have not yet been implemented.)
EXPORTS
The following constants that indicate the type of rule will be exported on request:
UNKNOWN_RULE
STYLE_RULE
CHARSET_RULE
IMPORT_RULE
MEDIA_RULE
FONT_FACE_RULE
PAGE_RULE