Search completed in 1.16 seconds.
4 results for "parentRule":
CSSStyleDeclaration.parentRule - Web APIs
WebAPICSSStyleDeclarationparentRule
the cssstyledeclaration.parentrule read-only property returns a cssrule that is the parent of this style block, e.g.
... syntax var rule = styles.parentrule; value the css rule that contains this declaration block or null if this cssstyledeclaration is not attached to a cssrule.
... example the following javascript code gets the parent css style rule from a cssstyledeclaration: var declaration = document.stylesheets[0].rules[0].style; var rule = declaration.parentrule; specifications specification status comment css object model (cssom)the definition of 'cssstyledeclaration.parentrule' in that specification.
CSSRule - Web APIs
WebAPICSSRule
cssrule.parentrule read only returns the containing rule, otherwise null.
CSSStyleDeclaration - Web APIs
WebAPICSSStyleDeclaration
cssstyledeclaration.parentruleread only the containing cssrule.
Index - Web APIs
WebAPIIndex
462 cssstyledeclaration.parentrule api, cssom, property, reference the cssstyledeclaration.parentrule read-only property returns a cssrule that is the parent of this style block 463 cssstyledeclaration.removeproperty() api, cssom, method, reference the cssstyledeclaration.removeproperty() method interface removes a property from a css style declaration object.