Skip to content

Commit

Permalink
fix: remove boundary conditions for visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf authored and OrKoN committed Nov 14, 2022
1 parent 1bbecb3 commit e4a7b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/puppeteer-core/src/injected/util.ts
Expand Up @@ -64,5 +64,5 @@ export const checkVisibility = (

function isBoundingBoxVisible(element: Element): boolean {
const rect = element.getBoundingClientRect();
return rect.width > 0 && rect.height > 0 && rect.right > 0 && rect.bottom > 0;
return rect.width > 0 && rect.height > 0;
}

0 comments on commit e4a7b4f

Please sign in to comment.