@DOMObjectAttribute @DOMNameAttribute(name="CSSMediaRule") public interface ICSSMediaRule extends ICSSRule
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.
Modifier and Type | Method and Description |
---|---|
void |
deleteRule(long index)
Used to delete a rule from the media block.
|
ICSSRuleList |
getCSSRules()
A list of all CSS rules contained within the media block.
|
IMediaList |
getMedia()
A list of media types for this rule.
|
long |
insertRule(java.lang.String rule,
long index)
Used to insert a new rule into the media block.
|
getCSSText, getParentRule, getParentStyleSheet, getType, setCSSText
@DOMNameAttribute(name="media") IMediaList getMedia()
A list of media types for this rule.
@DOMNameAttribute(name="cssRules") ICSSRuleList getCSSRules()
A list of all CSS rules contained within the media block.
@DOMNameAttribute(name="insertRule") long insertRule(java.lang.String rule, long index)
Used to insert a new rule into the media block.
rule
- The media rule.index
- The index.@DOMNameAttribute(name="deleteRule") void deleteRule(long index)
Used to delete a rule from the media block.
index
- The index.