Skip to content

Commit 63f6fbe

Browse files
fix: use larger iframe for animations
0x0 iframes have their animations disabled in chrome proper (if not headless), but 1x1 iframes behave correctly
1 parent 111f791 commit 63f6fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/main/src/test-runner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ const hideFrame = (iframe: HTMLIFrameElement) => {
9292
};
9393

9494
const hideAllowingAnimations = (iframe: HTMLIFrameElement) => {
95-
iframe.style.width = "0px";
96-
iframe.style.height = "0px";
95+
iframe.style.width = "1px";
96+
iframe.style.height = "1px";
9797
iframe.style.opacity = "0";
9898
iframe.style.pointerEvents = "none";
9999
};

0 commit comments

Comments
 (0)