mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-04 16:44:11 +03:00
chore: remove redundant parameters from isElementStyleVisibilityVisible (#30637)
This commit is contained in:
parent
ddeec35450
commit
7c826719ec
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user