insertRule method
The CSSStyleSheet.insertRule()
method inserts a new
CSS rule into
the
current style sheet.
Note: Although
insertRule()
is exclusively a method of CSSStyleSheet, it actually inserts the rule into[CSSStyleSheet].cssRules
— its internal CSSRuleList.
Implementation
external int insertRule(
String rule, [
int index,
]);