-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Interactions between inert
and hidden="until-found"
and beforematch
events
#10583
Comments
inert
and hidden="until-found" and
beforematch` eventsinert
and hidden="until-found"
and beforematch
events
Are you revealing it with find in page? Because we recently made find in page stop finding results in inert subtrees. |
Indeed, this used to work perfectly and As I said, I am unsure if this was ever supposed to work. |
Do other browsers find text in (non-hidden) inert subtrees? This should probably be clarified in the standard if nothing is said about it today, though we can at most make this a "should" I suppose. |
(weirdly coincidental that this stopped working both in Are there cases where you want an element to be visible, yet inert and not have it appear through "find in page"? |
I'm not sure, but it seems a bit suspect and might be an issue for keyboard-only users? cc @whatwg/a11y |
I agree that it is be bad for keyboard-only users when they find content that remains inert even after discovery. |
I've investigated a bit further on how we ended up having both We started out with panels that were hidden without using the We used When I think that for our specific case it makes more sense to remove I think that the spec should clarify that |
https://html.spec.whatwg.org/#inert-subtrees
Already in the spec :) So to circle back to my original question which was specifically about Removing So maybe this can be closed as "no change"? |
Sounds good to me |
What is the issue with the HTML Standard?
Chrome is the only browser supporting all three features (as far as I know).
And up until Chrome 123 it was possible to set an element to
inert
, visually hide it withhidden="until-found"
.We could then reveal it and make it non-inert through a
beforematch
event listener.This was really handy to make accordions as the closed panels should be inert but we still want users to be able to search for text in a page and that the panel is opened and scrolled to when there is a match.
In Chrome 124 this stopped working.
When reading through the spec text for
inert
it doesn't specifically say that an element should not be findable through search in a page.So I am not sure if this is a browser bug, or something that never should have worked in the first place and was actually fixed in Chrome 124.
Happy to file browser bugs if this is an issue in Chrome, but wanted to know the actual expected behavior first.
The text was updated successfully, but these errors were encountered: