Implement auto-expanding <details>
Categories
(Core :: Find Backend, enhancement, P3)
Tracking
()
People
(Reporter: jarhar, Assigned: jjaschke)
References
(Depends on 1 open bug, Blocks 2 open bugs, )
Details
(Keywords: parity-chrome, parity-safari)
User Story
platform-scheduled: 2025-09-30
Attachments
(2 files)
In this HTML spec PR, we are making <details> automatically expand for element fragments and find-in-page: https://github.com/whatwg/html/pull/6466
This way, the user can effectively use find-in-page to search for content hidden inside <details> elements without having to manually expand all of them first.
In order to make it performant, the spec PR also suggests using content-visibility:hidden inside <details>'s user agent shadowdom instead of "removing the slot from the rendering" when <details> are closed.
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Address Bar' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•4 years ago
|
||
Hi,
Thank you for opening this enhancement. I will set this as New and waiting for the developers opinion about it.
Thanks for your input.
Comment 3•4 years ago
|
||
Not sure whether this belongs in Find Toolbar or Core, but auto-expanding when the find toolbar is used sounds like more of the former...
Comment 4•4 years ago
|
||
FYI: This is now shipping in Chrome.
From Chrome 97 announcement at https://blog.chromium.org/2021/11/chrome-97-webtransport-new-array-static.html
"Auto-expand Details Elements
Closed details elements are now searchable and can now be linked to. These hidden elements will also automatically expand when find-in-page, ScrollToTextFragment, and element fragment navigation are used."
Updated•4 years ago
|
Currently works in both Chrome and Edge
For EDA log files that are 180K lines long, using <summary>/<details> to hide information is important. Yet when our build summary report (similar to a JUnit test report) shows that a test failed, we need to be able to quickly go to the log information for that test failure. Putting the link inside of the <details> allows us to jump to the appropriate place and provide the detailed information.
![]() |
||
Comment 10•2 years ago
|
||
Expandable on search <details>
are recommended from the standpoint of accessibility
https://fosdem.org/2023/schedule/event/a11y_eaa_bfsg_wcag_wai_aria_wtf/
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 16•1 year ago
|
||
Not sure what a priority would do here...however I think this is likely an P3 and we probably needs more discussions about allocating resources to fix the feature gaps for <details>.
Updated•1 year ago
|
Comment 17•7 months ago
•
|
||
This failure is part of interop-2025 scope.
Comment 18•7 months ago
|
||
Since it relates to Text Fragments, this issue (also) probably blocks meta bug 1753933 (?)
Assignee | ||
Comment 19•7 months ago
|
||
Updated•7 months ago
|
Assignee | ||
Comment 20•7 months ago
|
||
beforematch
is not fired for auto-expanding details,
neither is it used in the target page.
The test ensures that the page scrolls as a result of
scrolling to an auto-expanding details element using
a text fragment navigation.
Updated•7 months ago
|
Comment 21•6 months ago
|
||
Comment 23•6 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/33fb6d7456da
https://hg.mozilla.org/mozilla-central/rev/65d1ba19afbf
Assignee | ||
Comment 25•6 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: This allows find-in-page to search in closed <details> elements and opens them if the search string is found.
[Affects Firefox for Android]: yes
[Suggested wording]:
[Links (documentation, blog post, etc)]:
Updated•5 months ago
|
Description
•