A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/deleteRule below:

CSSGroupingRule: deleteRule() method - Web APIs

CSSGroupingRule: deleteRule() method

Baseline Widely available

The deleteRule() method of the CSSGroupingRule interface removes a CSS rule from a list of child CSS rules.

Syntax Parameters
index

The index of the rule to delete.

Return value

None (undefined).

Exceptions
IndexSizeError DOMException

Thrown if index is greater than or equal to the number of child CSS rules.

InvalidStateError DOMException

Thrown if the rule being removed is an @namespace at-rule, and the list of child CSS rules contains anything other than @import at-rules and @namespace at-rules.

Examples
let myRules = document.styleSheets[0].cssRules;
myRules[0].deleteRule(2); /* deletes the rule at index 2 */
Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4