API / geotoolkit / report / dom / css / CssStyleDeclaration / CssStyleDeclaration
css.CssStyleDeclaration.CssStyleDeclaration
Defines CSS Style Declaration
Constructors
Accessors
Accessors
• get cssText(): string
Textual representation of the declaration block, if and only if it is exposed via HTMLElement.style. Setting this attribute changes the inline style. If you want a text representation of a computed declaration block, you can get it with JSON.stringify().
Name
module:geotoolkit/report/dom/css/CssStyleDeclaration~CssStyleDeclaration#cssText
string
• get length(): number
Return length of the rules list
Name
module:geotoolkit/report/dom/css/CssStyleDeclaration~CssStyleDeclaration#length
number
• 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/CssStyleDeclaration~CssStyleDeclaration#parentRule
Methods
▸ getClassName(): string
string
▸ getPropertyPriority(property): string
Returns the optional priority, "important".
| Name | Type | Description |
|---|---|---|
property | string | CSS style property |
string
property priority
▸ getPropertyValue(property): string
Returns the property value given a property name.
| Name | Type | Description |
|---|---|---|
property | string | CSS style property name |
string
property value
▸ removeProperty(property): string
Removes a property from the CSS declaration block.
| Name | Type | Description |
|---|---|---|
property | string | CSS style property |
string
oldValue is a string equal to the value of the CSS property before it was removed.
▸ setProperty(property, value, priority?): CssStyleDeclaration
Modifies an existing CSS property or creates a new CSS property in the declaration block.
| Name | Type | Description |
|---|---|---|
property | string | CSS style property name |
value | string | CSS style property value |
Optional priority | string | CSS style property priority |
this
▸ Static getClassName(): string
string