The insertRule() method of the CSSGroupingRule interface adds a new CSS rule to a list of CSS rules.
insertRule()
MDN Reference