Last updated

API / geotoolkit / report / dom / css / CssStyleRule / CssStyleRule

Class: CssStyleRule

css.CssStyleRule.CssStyleRule

Defines CSS Style Rule

Hierarchy

Table of contents

Constructors
Accessors
Methods

Contents

Constructors

new CssStyleRule()

new CssStyleRule()

Overrides

CssRule.constructor

Accessors

cssText

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

Returns

string

Inherited from

CssRule.cssText


parentRule

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

Returns

CssRule

Inherited from

CssRule.parentRule


parentStyleSheet

get parentStyleSheet(): CssStyleSheet

Returns the object for the style sheet that contains this rule

Name

module:geotoolkit/report/dom/css/CssRule~CssRule#parentStyleSheet

Returns

CssStyleSheet

Inherited from

CssRule.parentStyleSheet


selectorText

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

Returns

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

Parameters

Name Type
selectorTextstring

Returns

void


style

get style(): CssStyleDeclaration

Returns the style declaration object for the rule.

Name

module:geotoolkit/report/dom/css/CssStyleRule~CssStyleRule#style

Returns

CssStyleDeclaration

Methods

getClassName

getClassName(): string

Returns

string

Inherited from

CssRule.getClassName


getClassName

Static getClassName(): string

Returns

string

Inherited from

CssRule.getClassName