This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

CSSMediaRule

Properties

cssRules
Gets a list of rules within a @media block.

Methods

deleteRule
Deletes a CSSRule (representing a selector and all its properties) from the block of rules controlled by this @media rule; the rule to be deleted is specified by index.
insertRule
Inserts a new rule to a media block.

Events

No events.

Standards information

Members

The CSSMediaRule object has these types of members:

  • [#methods Methods]
  • [#properties Properties]

Methods

The CSSMediaRule object has these methods. {

See also

Related articles

CSSOM

Related pages

  • IHTMLCSSMediaRule

Attributions