Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

cssRule.parentStyleSheet

 

Summary

parentStyleSheet returns the object type of style sheet, in which the rule is defined.

Syntax

stylesheet = cssRule.parentStyleSheet 

Parameters

  • stylesheet stylesheet is an object type.

Instance

if (bgRule.parentStyleSheet! = MySheet) {
   // Style alien rule!
}

Letters

See Gecko DOM Reference: event # DOM_styleSheet_Object for more information about the interface type objects stylesheet.

Specification

DOM Level 2 Style - cssRule

Etiquetas y colaboradores del documento

 Colaboradores en esta página: fscholz, arunpandianp, teoli, HenryGR
 Última actualización por: arunpandianp,