CSSStyleDeclaration parentRule Property (original) (raw)
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:
html `
CSS | Style Declaration parentRule Property