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

Bad UX of overlapping “Support:” (caniuse.com) popups makes collapsing impossible #2096

Closed
sideshowbarker opened this issue Nov 25, 2016 · 7 comments
Assignees

Comments

@sideshowbarker
Copy link
Contributor

  1. Open https://html.spec.whatwg.org/multipage/scripting.html#attr-script-defer
    You’ll see a Support: popup with data from caniuse.com

  2. Use the (tiny) collapse control in the upper-right corner of the popup to (attempt to) collapse it.
    …but there’s still a popup there and you have no way to make it go away.

The cause seems to be, we have two terms async and defer on the same line in the spec, and we have caniuse.com data for both, so we end up with two popups getting rendered on top each other.

When you use the collapse control for the upper (z-index) one, it collapses as expected but that just reveals the other one below it—but now the collapse control for the upper one is still there, covering the collapse control for the lower one. So you have no way to make the lower one collapse.

@annevk
Copy link
Member

annevk commented Nov 25, 2016

We should also maybe move that collapse control to the other side, since the scrollbar can obscure it.

@annevk
Copy link
Member

annevk commented Nov 25, 2016

It should maybe use <details>. I think that's in a few browsers now.

@zcorpan
Copy link
Member

zcorpan commented Nov 25, 2016

It's also annoying that it overlaps the text to begin with. We could tweak the padding on body to maybe reduce it on the left side and increase it on the right side.

@annevk
Copy link
Member

annevk commented Nov 25, 2016

This duplication also happens at https://html.spec.whatwg.org/multipage/embedded-content.html#the-video-element due to open spec bugs.

I found that through manipulating Wattsi so I can probably solve this somehow, but we have to decide on the output we want. A single <div class=status> with multiple <details> descendants?

@annevk
Copy link
Member

annevk commented Nov 25, 2016

Ah, the reason it happens for the video element is because of differing IDs. That could be solved by just changing the entries in Bugzilla too.

@rolfen
Copy link

rolfen commented Nov 26, 2016

Same issue here. Unable to collapse popup, which blocks text.
The "Support" box show be floated within the flow so that text flows around it.

screen shot 2016-11-26 at 22 29 32

@zcorpan
Copy link
Member

zcorpan commented Nov 28, 2016

This should be fixed now.

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

No branches or pull requests

4 participants