Intent to Prototype: Auto-expand details for find-in-page, element fragments, and ScrollToTextFragment

167 views
Skip to first unread message

Joey Arhar

unread,
Jun 10, 2021, 3:39:10 PM6/10/21
to blink-dev

Contact emails

jar...@chromium.org

Explainer

None

Specification

https://github.com/whatwg/html/pull/6466

Summary

This feature will make the <details> element automatically expand in response to other features which want to scroll to text or elements inside their collapsed content.


Blink component

Blink>HTML

Motivation

This feature will allow scroll to text links and element fragment links to become capable of targeting content inside of collapsed details elements by making the browser open them before scrolling to the desired content. It will also allow find-in-page to search through content inside collapsed details elements by expanding them before find-in-page scrolls to them, effectively making much more content in existing webpages searchable. https://bugs.chromium.org/p/chromium/issues/detail?id=1058732 https://bugs.chromium.org/p/chromium/issues/detail?id=1185950 https://github.com/whatwg/html/issues/4051 https://github.com/whatwg/html/pull/6466



Initial public proposal

None

TAG review

None

TAG review status

Pending

Risks



Interoperability and Compatibility

If this isn't implemented by other browsers, then it will mean find-in-page is a little less powerful in other browsers, and links to content inside <details> won't work in other browsers if the <details> is closed on page load.



Gecko: No signal

WebKit: No signal

Web developers: No signals


Is this feature fully tested by web-platform-tests?

find-in-page can't be tested in WPT right now, but the functionality for element fragments and scroll to text fragments will be tested in WPT.

Flag name

None

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1185950

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5032469667512320

This intent message was generated by Chrome Platform Status.

Thomas Steiner

unread,
Jun 11, 2021, 6:32:38 AM6/11/21
to Joey Arhar, blink-dev
I tweeted about this and people seem to be positive about it: https://twitter.com/tomayac/status/1403119516922662913
 

Is this feature fully tested by web-platform-tests?

find-in-page can't be tested in WPT right now, but the functionality for element fragments and scroll to text fragments will be tested in WPT.

Flag name

None

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1185950

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5032469667512320

This intent message was generated by Chrome Platform Status.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK6btwLMTSRXhmfi1DwX7R7d9e0GAY%2B0gtYsBk7_n8O99BVW_Q%40mail.gmail.com.


--
Thomas Steiner, PhD—Developer Advocate (https://blog.tomayac.com, https://twitter.com/tomayac)

Google Germany GmbH, ABC-Str. 19, 20354 Hamburg, Germany
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
Registergericht und -nummer: Hamburg, HRB 86891

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.1.23 (GNU/Linux)

iFy0uwAntT0bE3xtRa5AfeCheCkthAtTh3reSabiGbl0ck0fjumBl3DCharaCTersAttH3b0ttom.hTtPs://xKcd.cOm/1181/
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages