JavaScripture
Contribute via GitHub Feedback

CSSStyleSheet : StyleSheet

Represents a css style sheet. Use the document.styleSheets property to get a list of all CSSStyleSheets for a document. Can be created by creating an HTMLStyleElement and accesing its sheet property.

Instance Properties

cssRules : CSSRuleList

ownerRule : CSSRule

Instance Methods

deleteRule(index : Number) : undefined

Example:

Run

Results:

 

insertRule(rule : String, index : Number) : Number

Example:

Run

Results: