0๐
โ
I believe the method you are looking for is called appendRule
, not insertRule
.
https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule
insertRule
is a method of CSSStyleSheet
, not CSSKeyframesRule
:
https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule
It would appear that CSSKeyframesRule
did have an insertRule
method historically:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/wW7w8Hro78s
Source:stackexchange.com