chore: remove redundant parameters from isElementStyleVisibilityVisible (#30637)

This commit is contained in:
Saswat Das 2024-05-08 22:15:53 +05:30 committed by GitHub
parent ddeec35450
commit 7c826719ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.