diff --git a/packages/animations/browser/src/render/css_keyframes/css_keyframes_driver.ts b/packages/animations/browser/src/render/css_keyframes/css_keyframes_driver.ts index 9f5b771b44..68805f196e 100644 --- a/packages/animations/browser/src/render/css_keyframes/css_keyframes_driver.ts +++ b/packages/animations/browser/src/render/css_keyframes/css_keyframes_driver.ts @@ -72,7 +72,7 @@ export class CssKeyframesDriver implements AnimationDriver { keyframeStr += `}\n`; const kfElm = document.createElement('style'); - kfElm.innerHTML = keyframeStr; + kfElm.textContent = keyframeStr; return kfElm; }