CSSStyleSheet
The CSSStyleSheet
interface represents a single CSS stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet.
Properties
The read-only CSSStyleSheet property cssRules
returns a live CSSRuleList which provides a real-time, up-to-date list of every CSS rule which comprises the stylesheet.
The parentStyleSheet
property of the StyleSheet interface returns the style sheet, if any, that is including the given style sheet.
Functions
The CSSStyleSheet method deleteRule()
removes a rule from the stylesheet object.
The CSSStyleSheet.insertRule()
method inserts a new CSS rule into the current style sheet.
The replace()
method of the CSSStyleSheet interface asynchronously replaces the content of the stylesheet with the content passed into it.
The replace()
method of the CSSStyleSheet interface asynchronously replaces the content of the stylesheet with the content passed into it.
The replaceSync()
method of the CSSStyleSheet interface synchronously replaces the content of the stylesheet with the content passed into it.