ProjectVisBug
ProjectVisBug copied to clipboard
New plugin: Body overflow element highlighter / debugger
here's a script starter https://davidwalsh.name/detect-overflow-elements
document.querySelectorAll('*').forEach(el => {
if (el.offsetWidth > document.documentElement.offsetWidth) {
console.log('Found the worst element ever: ', el);
}
});
Seems like a nice plugin to be able to run 👍🏻
i'll take a look into this. i'll refer to some old code of mine: https://github.com/hchiam/in-browser-style-linter/blob/master/linter.js#L163