+function pauseAnimationAtTimeOnPseudoElement(animationName, time, element, pseudoId)
+{
+ const pseudoElement = internals.pseudoElement(element, pseudoId);
+ if (!pseudoElement) {
+ console.log("Failed to find pseudo element");
+ return;
+ }
+
+ const animations = pseudoElement.getAnimations();
+ for (let animation of animations) {
+ if (animation instanceof CSSAnimation && animation.animationName == animationName && animation.effect.getKeyframes().length) {
+ animation.currentTime = time * 1000;
+ animation.pause();
+ return true;
+ }
+ }
+ return false;
+}
+