The CSSStyleSheet.deleteRule() method removes a style rule from the current style sheet object.
CSSStyleSheet.insertRule() method inserts a new CSS rule into the current style sheet. (with some restrictions)