Open argyleink opened 3 years ago
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
here's a script starter https://davidwalsh.name/detect-overflow-elements
Seems like a nice plugin to be able to run 👍🏻