Skip to content

Commit 7c82671

Browse files
authored
chore: remove redundant parameters from isElementStyleVisibilityVisible (#30637)
1 parent ddeec35 commit 7c82671

File tree

1 file changed

+1
-1
lines changed
  • packages/playwright-core/src/server/injected

1 file changed

+1
-1
lines changed

packages/playwright-core/src/server/injected/domUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function isElementStyleVisibilityVisible(element: Element, style?: CSSSty
8484
// https://bugs.webkit.org/show_bug.cgi?id=264733
8585
// @ts-ignore
8686
if (Element.prototype.checkVisibility && browserNameForWorkarounds !== 'webkit') {
87-
if (!element.checkVisibility({ checkOpacity: false, checkVisibilityCSS: false }))
87+
if (!element.checkVisibility())
8888
return false;
8989
} else {
9090
// Manual workaround for WebKit that does not have checkVisibility.

0 commit comments

Comments
 (0)