CSSMediaRule object
Represents an @media rule within a Cascading Style Sheets (CSS) style sheet.
![]() ![]() |
DOM Information
Inheritance Hierarchy
CSSRule
CSSMediaRule
Members
The CSSMediaRule object has these types of members:
Methods
The CSSMediaRule object has these methods.
| Method | Description |
|---|---|
| deleteRule |
Deletes a rule from the media block. |
| insertRule |
Inserts a new rule into the media block. |
Properties
The CSSMediaRule object has these properties.
| Property | Access type | Description |
|---|---|---|
|
Retrieves a list of all CSS rules contained within the parent object. | ||
|
Read/write |
Sets or retrieves the persisted representation of the style rule. | |
|
Sets or retrieves a list of media types for this rule. | ||
|
Retrieves the containing rule, if the current rule is contained inside another rule. | ||
|
Retrieves the style sheet that contains the current rule. | ||
|
Retrieves the type of the rule. |
Standards information
See also
Show:

