This feature will make closed details elements searchable and automatically expand when the browser tries to scroll to their hidden contents in response to find-in-page, ScrollToTextFragment, and element fragment navigation.
If other browsers don't implement this feature for element fragments, it may be an observable difference to webpages, but this portion is the least contentious and complicated part of this feature, so other browsers are most likely to at least implement this for element fragments. If other browsers don't implement this feature for find-in-page or ScrollToTextFragment, it won't cause any websites to break because webpages can't observe the difference.
This feature does not have any added DevTools support. This feature does not add any state to the page that would need to be inspected with DevTools. Find-in-page, ScrollToTextFragment, and element fragment navigation do not provide any DevTools debugging that this feature could build on or leverage.
M96
Contact emails
jar...@chromium.orgExplainer
https://github.com/WICG/display-locking/blob/main/explainers/auto-expanding-details-explainer.mdSpecification
https://github.com/whatwg/html/pull/6466Design docs
https://github.com/WICG/display-locking/blob/main/privacy-assessments/auto-expanding-details-privacy.mdSummary
This feature will make closed details elements searchable and automatically expand when the browser tries to scroll to their hidden contents in response to find-in-page, ScrollToTextFragment, and element fragment navigation.
Blink component
Blink>HTMLTAG review
https://github.com/w3ctag/design-reviews/issues/677TAG review status
PendingRisks
Interoperability and Compatibility
If other browsers don't implement this feature for element fragments, it may be an observable difference to webpages, but this portion is the least contentious and complicated part of this feature, so other browsers are most likely to at least implement this for element fragments. If other browsers don't implement this feature for find-in-page or ScrollToTextFragment, it won't cause any websites to break because webpages can't observe the difference.
Gecko: No signal (https://github.com/mozilla/standards-positions/issues/578)
WebKit: No signal (https://lists.webkit.org/pipermail/webkit-dev/2021-September/031983.html)
Web developers: No signals
- Here is a user reported bug requesting this feature: https://bugs.chromium.org/p/chromium/issues/detail?id=1058732
- Here is an article I found describing the lack of element fragment navigation: https://www.sitepoint.com/fixing-the-details-element/#:~:text=the%20target%20element%20is%20inside%20a%20collapsed%20regionDebuggability
This feature does not have any added DevTools support. This feature does not add any state to the page that would need to be inspected with DevTools. Find-in-page, ScrollToTextFragment, and element fragment navigation do not provide any DevTools debugging that this feature could build on or leverage.
Is this feature fully tested by web-platform-tests?
No
- Auto-expanding details with element fragment navigation is tested here: https://wpt.fyi/results/html/semantics/interactive-elements/the-details-element/auto-expand-details-element-fragment.html
- I still need to add ScrollToTextFragment tests. ScrollToTextFragment tests do exist in WPT.
- Find-in-page can't be tested in WPT, but I may spec window.find and support it for this feature in the future just to make this WPT testable.Flag name
--enable-blink-features=AutoExpandDetailsElementRequires code in //chrome?
FalseTracking bug
https://bugs.chromium.org/p/chromium/issues/detail?id=1185950Launch bug
https://bugs.chromium.org/p/chromium/issues/detail?id=1241443Estimated milestones
M96
Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5032469667512320This 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/CAK6btwJKmGKbjhWCdqrVO-Dm5LMmuROQ9M7N4UADjNvnTUaDAg%40mail.gmail.com.
Specification
https://github.com/whatwg/html/pull/6466Design docs
https://github.com/WICG/display-locking/blob/main/privacy-assessments/auto-expanding-details-privacy.mdSummary
This feature will make closed details elements searchable and automatically expand when the browser tries to scroll to their hidden contents in response to find-in-page, ScrollToTextFragment, and element fragment navigation.
Blink component
Blink>HTMLTAG review
https://github.com/w3ctag/design-reviews/issues/677
TAG review status
PendingRisks
Interoperability and Compatibility
If other browsers don't implement this feature for element fragments, it may be an observable difference to webpages, but this portion is the least contentious and complicated part of this feature, so other browsers are most likely to at least implement this for element fragments. If other browsers don't implement this feature for find-in-page or ScrollToTextFragment, it won't cause any websites to break because webpages can't observe the difference.
Gecko: No signal (https://github.com/mozilla/standards-positions/issues/578)
WebKit: No signal (https://lists.webkit.org/pipermail/webkit-dev/2021-September/031983.html)
Web developers: No signalsI think it's fair to say "positive", given the like and retweet signals on https://twitter.com/tomayac/status/1403119516922662913 and https://twitter.com/tomayac/status/1293696281370669057 where this behavior is described.- Here is a user reported bug requesting this feature: https://bugs.chromium.org/p/chromium/issues/detail?id=1058732
- Here is an article I found describing the lack of element fragment navigation: https://www.sitepoint.com/fixing-the-details-element/#:~:text=the%20target%20element%20is%20inside%20a%20collapsed%20region
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CALgRrLnkya4wkC7r-tWBcWoOkoJnGof%3DLt_reiM6AyKtm-BNDQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK6btw%2BDmDf3s95mS%2Ba2kQKFCKA4DXhcL59%3Dm8ZmO6tskjQG%3Dg%40mail.gmail.com.
Not sure this was discussed before, but could a new boolean attribute that opts the element in to the new behavior be the answer?<details searchable><!-- … --></details>
Not sure I completely agree, so, not so "right". :)Using <summary>/<details> for "accordions" is kind of the prescribed way to do this. I do not think encouraging other, maybe less accessible, semantic or simple ways is so "right".And this is breaking/changing an existing behaviour. You would not say this ("they could just not use the details element, right?") so casually about other platform changes, I think.This is why I think a way to opt-out is fair.
On Thu, Sep 23, 2021 at 9:25 AM Thomas Steiner <to...@google.com> wrote:
Not sure this was discussed before, but could a new boolean attribute that opts the element in to the new behavior be the answer?
<details searchable><!-- … --></details>
At the risk of jinxing
UseCounter metrics, another option would be to spec the
`search` event such that `preventDefault()` provides an opt-out
here.
--
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/cc3efcbb-85a8-4689-a892-100b81e4ee70n%40chromium.org.
LGTM3
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXHy%3Ddta1BOirR73vuy61808GHRYUXT4n95CFA6j9jdg0WBSw%40mail.gmail.com.
Though I notice that there were some good comments about documentation in the TAG thread and that documentation should be added before this reaches stable (the sooner the better).
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/c66847c5-80bd-1ebb-7e86-b1f61467507c%40gmail.com.