Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New plugin: Body overflow element highlighter / debugger #500

Open
argyleink opened this issue Apr 12, 2021 · 1 comment
Open

New plugin: Body overflow element highlighter / debugger #500

argyleink opened this issue Apr 12, 2021 · 1 comment
Labels
⚡️ feature New tricks for the tool-palette good first issue 👍 Good for newcomers

Comments

@argyleink
Copy link
Collaborator

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 👍🏻

@argyleink argyleink added good first issue 👍 Good for newcomers ⚡️ feature New tricks for the tool-palette labels Apr 12, 2021
@hchiam
Copy link
Contributor

hchiam commented Jun 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡️ feature New tricks for the tool-palette good first issue 👍 Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants