addRule method

int addRule([
  1. String selector,
  2. String style,
  3. int index
])

The obsolete CSSStyleSheet interface's addRule() legacy method adds a new rule to the stylesheet. You should avoid using this method, and should instead use the more standard CSSStyleSheet.insertRule method.

Implementation

external int addRule([
  String selector,
  String style,
  int index,
]);