Skip to content

add a "debug" mode css #233

@id0Sch

Description

@id0Sch

When debugging layout bugs i often use a snippet that puts the DOM in a debug mode that looks like that:
image

It basically shows each component with transparent borders to easily see the tree.
The css is pretty basic:

*:not(path):not(g) {
  color: hsla(210, 100%, 100%, 0.9) !important;
  background: hsla(210, 100%, 50%, 0.5) !important;
  outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important;
  box-shadow: none !important;
}

and I even have a bookmarklet that does exactly that:

javascript:(()=>{var s= document.createElement('style');s.innerHTML='*:not(path):not(g) {color: hsla(210, 100%, 100%, 0.9) !important;background: hsla(210, 100%, 50%, 0.5) !important;outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important;box-shadow: none !important;}';document.head.appendChild(s)})()

This could be a cool addition to the extension,
Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions