Liking cljdoc? Tell your friends :D

css.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.

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

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

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

Method.

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

`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.

The read-only css.CSSStyleSheet property cssRules returns a css.CSSRuleList which provides a real-time, up-to-date list 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.

The read-only `css.CSSStyleSheet` property cssRules returns a
`css.CSSRuleList` which provides a real-time, up-to-date list
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 css.CSSStyleSheet method deleteRule() removes a rule from stylesheet object.

cssStyleSheet.deleteRule(index)

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

Method.

The `css.CSSStyleSheet` method deleteRule() removes a rule from
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.

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

var ownerRule = cssStyleSheet.ownerRule;

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

Property.

The read-only `css.CSSStyleSheet` property ownerRule returns
`css.CSSImportRule` corresponding to the `web.@import` at-rule
imported 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.

The obsolete css.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.

The obsolete `css.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.

rules is a deprecated legacy property of the css.CSSStyleSheet Functionally identical to the preferred web.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.

rules is a deprecated legacy property of the `css.CSSStyleSheet`
Functionally identical to the preferred `web.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