Last updated

API / geotoolkit / report / dom / css / CssRule / CssRule

Class: CssRule

css.CssRule.CssRule

Defines CSS Rule

Hierarchy

Table of contents

Constructors
Accessors
Methods

Contents

Constructors

new CssRule()

new CssRule()

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


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


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

Methods

getClassName

getClassName(): string

Returns

string


getClassName

Static getClassName(): string

Returns

string