-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Assertion in "hide all popovers until" will fail when changing a showing "hint" popover to "auto" #10996
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
Comments
After thinking about this, I think the hide popover algorithm should be using the popover's opened in popover mode instead of the current popover state. |
Yep, I think this is the proper fix. Chromium indeed doesn't look at the attribute value, but instead the popover mode. |
I'd love to submit a fix for this (and my other popover issues) but I can't contribute without publishing my full legal name, which I don't feel comfortable doing. (I believe it would also be legally dubious to give a patch to someone to submit on my behalf) |
This PR prevents an assertion from being hit in hide all popovers until by changing the conditions in which hide all popovers until gets called by the hide popover algorithm to use the opened in popover mode instead of looking at the current value of the popover attribute. Fixes whatwg#10996
Thanks for figuring this out! Here's a PR: #11197 |
What is the issue with the HTML Standard?
Here's the problematic scenario:
When the popover is shown, its opened in popover mode is set to "hint".
Upon changing the popover attribute:
If element's popover attribute is in the auto state or the hint state, then: Run hide all popovers until given element
(step 7.1).If document's showing hint popover list contains endpoint: Assert: endpoint's popover attribute is in the hint state
(step 6.1)The text was updated successfully, but these errors were encountered: