Skip to content

Commit

Permalink
chore: remove redundant parameters from isElementStyleVisibilityVisib…
Browse files Browse the repository at this point in the history
…le (#30637)
  • Loading branch information
dassaswat committed May 8, 2024
1 parent ddeec35 commit 7c82671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playwright-core/src/server/injected/domUtils.ts
Expand Up @@ -84,7 +84,7 @@ export function isElementStyleVisibilityVisible(element: Element, style?: CSSSty
// https://bugs.webkit.org/show_bug.cgi?id=264733
// @ts-ignore
if (Element.prototype.checkVisibility && browserNameForWorkarounds !== 'webkit') {
if (!element.checkVisibility({ checkOpacity: false, checkVisibilityCSS: false }))
if (!element.checkVisibility())
return false;
} else {
// Manual workaround for WebKit that does not have checkVisibility.
Expand Down

0 comments on commit 7c82671

Please sign in to comment.