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

VisBug should render in :top-layer #610

Open
FortyGazelle700 opened this issue Sep 15, 2023 · 4 comments
Open

VisBug should render in :top-layer #610

FortyGazelle700 opened this issue Sep 15, 2023 · 4 comments

Comments

@FortyGazelle700
Copy link

When using the new browser dialog element, and call showModal() and trying to visually inspect an element using VisBug, VisBug appears underneath the top layer and get shown behind the modal, making it really hard to inspect modal elements using this extension.

@argyleink argyleink changed the title Visual Error when dealing with Dialog Modals VisBug should render in :top-layer Sep 18, 2023
@argyleink
Copy link
Collaborator

tooootally.

visbug needs to exist on :top-layer too so it can overlay these new elements that inhabit the top layer.

@hchiam
Copy link
Contributor

hchiam commented Nov 24, 2023

i had a quick skim over https://stackoverflow.com/questions/75509725/place-an-element-above-the-top-layer and some of the links there.

HMW put VisBug in the :top-layer?

  • somehow inject elements into the :top-layer?
  • put things inside an invisible <dialog>, since <dialog>s can be stacked?

@argyleink
Copy link
Collaborator

argyleink commented Nov 27, 2023

my current thinking is: project needs to move to / experiment with popover, which will get put into the top layer, can stack on each other, etc. there's a polyfill for it too https://github.com/oddbird/popover-polyfill

@argyleink
Copy link
Collaborator

after that, it'd be nice to move to anchor() positioning too, but that spec is less stable and adopting it now would likely be premature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants