API / geotoolkit / report / dom / css / CssStyleRule / CssStyleRule
css.CssStyleRule.CssStyleRule
Defines CSS Style Rule
↳
CssStyleRule
Constructors
Methods
Accessors
• get cssText(): string
Represents the textual representation of the rule, e.g. "h1,h2 { font-size: 16pt }" or "@import 'url'". To access or modify parts of the rule (e.g. the value of "font-size" in the example)
Name
module:geotoolkit/report/dom/css/CssRule~CssRule#cssText
string
CssRule.cssText
• get parentRule(): CssRule
Returns the containing rule, otherwise null. E.g. if this rule is a style rule inside an
Media
block, the parent rule would be that CSSMediaRule.
Name
module:geotoolkit/report/dom/css/CssRule~CssRule#parentRule
CssRule.parentRule
• get parentStyleSheet(): CssStyleSheet
Returns the object for the style sheet that contains this rule
Name
module:geotoolkit/report/dom/css/CssRule~CssRule#parentStyleSheet
CssRule.parentStyleSheet
• get selectorText(): string
Returns the textual representation of the selector for this rule, e.g. "h1,h2".
Name
module:geotoolkit/report/dom/css/CssStyleRule~CssStyleRule#selectorText
string
• set selectorText(selectorText): void
Returns the textual representation of the selector for this rule, e.g. "h1,h2".
Name
module:geotoolkit/report/dom/css/CssStyleRule~CssStyleRule#selectorText
| Name | Type |
|---|---|
selectorText | string |
void
• get style(): CssStyleDeclaration
Returns the style declaration object for the rule.
Name
module:geotoolkit/report/dom/css/CssStyleRule~CssStyleRule#style
Methods
▸ getClassName(): string
string
▸ Static getClassName(): string
string