ICSSMediaRule Interface

ICSSMediaRule interface

The CSSMediaRule interface represents a @media rule in a CSS style sheet. A @media rule can be used to delimit style rules for specific media types.

public interface ICSSMediaRule : ICSSRule

Properties

NameDescription
getCSSRules The cssRules property of the CSSGroupingRule interface returns a CSSRuleList containing a collection of CSSRule objects.
getMedia The read-only media property of the CSSMediaRule interface MediaList represents the intended destination medium for style information.

Methods

NameDescription
deleteRule(long)The deleteRule() method of the CSSGroupingRule interface removes a CSS rule from a list of child CSS rules.
insertRule(String, long)The insertRule() method of the CSSGroupingRule interface adds a new CSS rule to a list of CSS rules.

See Also