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.
(get-property-css-value this property)
Method.
The CSSStyleDeclaration.getPropertyCSSValue() method interface
a css.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. The CSSStyleDeclaration.getPropertyCSSValue() method interface a `css.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`
(get-property-priority this property)
Method.
The CSSStyleDeclaration.getPropertyPriority() method interface
a dom.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 `dom.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`
(get-property-value this property)
Method.
The CSSStyleDeclaration.getPropertyValue() method interface returns
dom.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 `dom.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`
(item this index)
Method.
The CSSStyleDeclaration.item() method interface returns a CSS
name from a css.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 `css.CSSStyleDeclaration` by index `var propertyName = style.item(index);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/item`
(length this)
Property.
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. 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`
(parent-rule this)
Property.
The CSSStyleDeclaration.parentRule read-only property returns
css.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. The CSSStyleDeclaration.parentRule read-only property returns `css.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`
(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`
(set-length! this val)
Property.
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. 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`
(set-parent-rule! this val)
Property.
The CSSStyleDeclaration.parentRule read-only property returns
css.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. The CSSStyleDeclaration.parentRule read-only property returns `css.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`
(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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close