Skip to content

Latest commit

 

History

History
72 lines (44 loc) · 1.77 KB

File metadata and controls

72 lines (44 loc) · 1.77 KB

CSSStyleSheet

Extends: StyleSheet

Category: browser, cssom

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

new CSSStyleSheet()

Represents a CSS style sheet

cssStyleSheet.cssRules : CSSRuleList

Return the list of CSS Rules

Read only

cssStyleSheet.rules : CSSRuleList

Return the list of CSS Rules

Read only

cssStyleSheet.href : DOMString

Read only

cssStyleSheet.type : DOMString

Default: undefined

Read only

cssStyleSheet.insertRule(rule, [index])

Insert a CSS Rule at the specified index.

Param Type Default
rule \*
[index] number 0

cssStyleSheet.deleteRule(index)

Delete the rule at the specified index

Param Type
index \*