We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

 

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,