Liking cljdoc? Tell your friends :D

web.cssdom.CSSStyleDeclaration

The CSSStyleDeclaration interface represents an object that is CSS declaration block, and exposes style information and various methods and properties.

The CSSStyleDeclaration interface represents an object that is
CSS declaration block, and exposes style information and various
methods and properties.
raw docstring

get-property-css-valuecljs

(get-property-css-value this property)

Method.

[Obsolute]

The CSSStyleDeclaration.getPropertyCSSValue() method interface a web.CSSValue containing the CSS value for a property.

var value = style.getPropertyCSSValue(property);

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyCSSValue

Method.

[Obsolute]

The CSSStyleDeclaration.getPropertyCSSValue() method interface
a `web.CSSValue` containing the CSS value for a property.

`var value = style.getPropertyCSSValue(property);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyCSSValue`
sourceraw docstring

get-property-prioritycljs

(get-property-priority this property)

Method.

The CSSStyleDeclaration.getPropertyPriority() method interface a web.DOMString that provides all explicitly set priorities the CSS property.

var priority = style.getPropertyPriority(property);

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyPriority

Method.

The CSSStyleDeclaration.getPropertyPriority() method interface
a `web.DOMString` that provides all explicitly set priorities
the CSS property.

`var priority = style.getPropertyPriority(property);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyPriority`
sourceraw docstring

get-property-valuecljs

(get-property-value this property)

Method.

The CSSStyleDeclaration.getPropertyValue() method interface returns web.DOMString containing the value of a specified CSS property.

var value = style.getPropertyValue(property);

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyValue

Method.

The CSSStyleDeclaration.getPropertyValue() method interface returns
`web.DOMString` containing the value of a specified CSS property.

`var value = style.getPropertyValue(property);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyValue`
sourceraw docstring

itemcljs

(item this index)

Method.

The CSSStyleDeclaration.item() method interface returns a CSS name from a web.cssdom.CSSStyleDeclaration by index

var propertyName = style.item(index);

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/item

Method.

The CSSStyleDeclaration.item() method interface returns a CSS
name from a `web.cssdom.CSSStyleDeclaration` by index

`var propertyName = style.item(index);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/item`
sourceraw docstring

lengthcljs

(length this)

Property.

[Read Only]

The read-only property returns an integer that represents the of style declarations in this CSS declaration block.

var num = styles.length;

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/length

Property.

[Read Only]

The read-only property returns an integer that represents the
of style declarations in this CSS declaration block.

`var num = styles.length;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/length`
sourceraw docstring

parent-rulecljs

(parent-rule this)

Property.

[Read Only]

The CSSStyleDeclaration.parentRule read-only property returns web.cssdom.CSSRule that is the parent of this style block

var rule = styles.parentRule;

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/parentRule

Property.

[Read Only]

The CSSStyleDeclaration.parentRule read-only property returns
`web.cssdom.CSSRule` that is the parent of this style block

`var rule = styles.parentRule;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/parentRule`
sourceraw docstring

remove-propertycljs

(remove-property this property)

Method.

The CSSStyleDeclaration.removeProperty() method interface removes property from a CSS style declaration object.

var oldValue = style.removeProperty(property);

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/removeProperty

Method.

The CSSStyleDeclaration.removeProperty() method interface removes
property from a CSS style declaration object.

`var oldValue = style.removeProperty(property);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/removeProperty`
sourceraw docstring

set-propertycljs

(set-property this property-name value priority)

Method.

The CSSStyleDeclaration.setProperty() method interface sets a value for a property on a CSS style declaration object.

style.setProperty(propertyName, value, priority);

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/setProperty

Method.

The CSSStyleDeclaration.setProperty() method interface sets a
value for a property on a CSS style declaration object.

`style.setProperty(propertyName, value, priority);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/setProperty`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close