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

Interactions between inert and hidden="until-found" and beforematch events #10583

Open
romainmenke opened this issue Aug 28, 2024 · 0 comments
Open

Comments

@romainmenke
Copy link

romainmenke commented Aug 28, 2024

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 with hidden="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.

@romainmenke romainmenke changed the title Interactions between inert and hidden="until-found" and beforematch` events Interactions between inert and hidden="until-found" and beforematch events Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant