Created
January 28, 2022 00:14
-
-
Save rickyalmeidadev/a66ab9df6c05990f380570bbf58b2eda to your computer and use it in GitHub Desktop.
Finding unintended body overflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Array().forEach.call(document.querySelectorAll('*'), element => { | |
if (element.offsetWidth > document.documentElement.offsetWidth) { | |
console.log(element) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment