This page is Almost Ready

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

deleteRule

Summary

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.

Method of css/cssom/CSSMediaRule/CSSMediaRulecss/cssom/CSSMediaRule/CSSMediaRule

Syntax

 mediaRule.deleteRule(/* see parameter list */);

Parameters

index

Data-type
Number

The index of the rule to remove from the media block’s rule collection.

Return Value

No return value

Related specifications

DOM Level 2 Style
Recommendation

See also

Related articles

CSSOM

Related pages

Attributions