ICSSRule.ParentRule

ICSSRule.ParentRule property

If this rule is contained inside another rule (e.g. a style rule inside an @media block), this is the containing rule. If this rule is not nested inside any other rules, this returns null.

public ICSSRule ParentRule { get; }

Property Value

A CSSRule which is the type of the containing rules. If the current rule is inside a media query, this would return CSSMediaRule. Otherwise it returns null.

See Also