Liking cljdoc? Tell your friends :D

web.cssdom.CSSStyleSheet

The CSSStyleSheet interface represents a single CSS stylesheet, lets you inspect and modify the list of rules contained in the

The CSSStyleSheet interface represents a single CSS stylesheet,
lets you inspect and modify the list of rules contained in the
raw docstring

add-rulecljs

(add-rule this selector style-block index)

Method.

[Obsolute]

The obsolete web.cssdom.CSSStyleSheet interface's addRule() method adds a new rule to the stylesheet. You should avoid using method, and should instead use the more standard insertRule()

var result = cssStyleSheet.addRule(selector, styleBlock, index);

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/addRule

Method.

[Obsolute]

The obsolete `web.cssdom.CSSStyleSheet` interface's addRule()
method adds a new rule to the stylesheet. You should avoid using
method, and should instead use the more standard `insertRule()`

`var result = cssStyleSheet.addRule(selector, styleBlock, index);`

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

css-rulescljs

(css-rules this)

Property.

[Read Only]

The read-only web.cssdom.CSSStyleSheet property cssRules returns live web.cssdom.CSSRuleList which provides a real-time, up-to-date of every CSS rule which comprises the stylesheet.

var rules = cssStyleSheet.cssRules;

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/cssRules

Property.

[Read Only]

The read-only `web.cssdom.CSSStyleSheet` property cssRules returns
live `web.cssdom.CSSRuleList` which provides a real-time, up-to-date
of every CSS rule which comprises the stylesheet.

`var rules = cssStyleSheet.cssRules;`

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

delete-rulecljs

(delete-rule this index)

Method.

The web.cssdom.CSSStyleSheet method deleteRule() removes a from the stylesheet object.

cssStyleSheet.deleteRule(index)

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/deleteRule

Method.

The `web.cssdom.CSSStyleSheet` method deleteRule() removes a
from the stylesheet object.

`cssStyleSheet.deleteRule(index)`

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

insert-rulecljs

(insert-rule this & args)

Method.

The CSSStyleSheet.insertRule() method inserts a new CSS rule the current style sheet, with some restrictions.

stylesheet.insertRule(rule [, index])

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule

Method.

The CSSStyleSheet.insertRule() method inserts a new CSS rule
the current style sheet, with some restrictions.

`stylesheet.insertRule(rule [, index])`

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

owner-rulecljs

(owner-rule this)

Property.

[Read Only]

The read-only web.cssdom.CSSStyleSheet property ownerRule returns CSSImportRule corresponding to the @import at-rule which the stylesheet into the document.

var ownerRule = cssStyleSheet.ownerRule;

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/ownerRule

Property.

[Read Only]

The read-only `web.cssdom.CSSStyleSheet` property ownerRule returns
`CSSImportRule` corresponding to the `@import` at-rule which
the stylesheet into the document.

`var ownerRule = cssStyleSheet.ownerRule;`

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

remove-rulecljs

(remove-rule this index)

Method.

[Obsolute]

The obsolete web.cssdom.CSSStyleSheet method removeRule() removes rule from the stylesheet object.

cssStyleSheet.removeRule(index)

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/removeRule

Method.

[Obsolute]

The obsolete `web.cssdom.CSSStyleSheet` method removeRule() removes
rule from the stylesheet object.

`cssStyleSheet.removeRule(index)`

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

rulescljs

(rules this)

Property.

[Read Only] [Obsolute]

rules is a deprecated legacy property of the web.cssdom.CSSStyleSheet Functionally identical to the preferred cssRules property, provides access to a live-updating list of the CSS rules comprising stylesheet.

var rules = cssStyleSheet.rules;

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/rules

Property.

[Read Only]
[Obsolute]

rules is a deprecated legacy property of the `web.cssdom.CSSStyleSheet`
Functionally identical to the preferred `cssRules` property,
provides access to a live-updating list of the CSS rules comprising
stylesheet.

`var rules = cssStyleSheet.rules;`

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

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

× close