ReadonlycssThe 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. Each item in the list is a CSSRule defining a single rule.
The disabled property of the StyleSheet interface determines whether the style sheet is prevented from applying to the document.
ReadonlyhrefThe href property of the StyleSheet interface returns the location of the style sheet.
ReadonlyownerThe ownerNode property of the StyleSheet interface returns the node that associates this style sheet with the document.
ReadonlyownerReadonlyparentThe parentStyleSheet property of the StyleSheet interface returns the style sheet, if any, that is including the given style sheet.
Readonlyrulesrules is a deprecated legacy property of the CSSStyleSheet interface. Functionally identical to the preferred cssRules property, it provides access to a live-updating list of the CSS rules comprising the stylesheet.
ReadonlytitleThe title property of the StyleSheet interface returns the advisory title of the current style sheet.
ReadonlytypeThe type property of the StyleSheet interface specifies the style sheet language for the given style sheet.
The read-only media property of the StyleSheet interface contains a MediaList object representing the intended destination media for style information.
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.
Optionalindex: numberThe replace() method of the CSSStyleSheet interface asynchronously replaces the content of the stylesheet with the content passed into it. The method returns a promise that resolves with the CSSStyleSheet object.
The replaceSync() method of the CSSStyleSheet interface synchronously replaces the content of the stylesheet with the content passed into it.
The
CSSStyleSheetinterface represents a single CSS stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet. It inherits properties and methods from its parent, StyleSheet.MDN Reference