VOOZH about

URL: https://www.geeksforgeeks.org/css/cssstyledeclaration-parentrule-property/

⇱ CSSStyleDeclaration parentRule Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

CSSStyleDeclaration parentRule Property

Last Updated : 9 Jun, 2023

The parentRule property is used to return the CSSRule Object that represents a CSS rule-set that contains selector and declaration block

Syntax: It is used to return the parentRule property.

object.parentRule

Return Value: It returns the CSSRule object. 

Example: To return the parentRule property

Output:

👁 Image
 

Supported Browsers: The browsers supported by Style Declaration parentRule Property are listed below:

  • Google Chrome 1
  • Edge 12
  • Internet Explorer 9
  • Firefox 1
  • Opera 15
  • Safari 1
Comment