Skip to content

Commit

Permalink
Fix fixKeyframes error when using shadowDOM
Browse files Browse the repository at this point in the history
Fix #171
  • Loading branch information
jhildenbiddle committed Jul 29, 2022
1 parent 9811bbd commit 68f5a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ function fixKeyframes(rootElement) {
].filter(prop => getComputedStyle(document.body)[prop])[0];

if (animationNameProp) {
const allNodes = rootElement.getElementsByTagName('*');
const allNodes = [].slice.call(rootElement.querySelectorAll('*'));
const keyframeNodes = [];
const nameMarker = '__CSSVARSPONYFILL-KEYFRAMES__';

Expand Down

0 comments on commit 68f5a80

Please sign in to comment.