parentStyleSheet

The parentStyleSheet property of the CSSRule interface returns the StyleSheet object in which the current rule is defined.

MDN Reference