Last active
March 14, 2016 05:48
-
-
Save saschanaz/0963a582f66ff407fd83 to your computer and use it in GitHub Desktop.
DOM overflow checker
This file contains hidden or 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
for (const element of Array.from(document.querySelectorAll('*'))) { | |
if (element.clientWidth > window.innerWidth) { | |
console.log("Wider Element: ", element, ", width: ", element.clientWidth) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment