WICG / navigation-api

The new navigation API provides a new interface for navigations and session history, with a focus on single-page application navigations.
https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigation-api
484 stars 30 forks source link

Enable default focus behavior for fragment navigations that are intercepted #247

Closed tbondwilkinson closed 1 year ago

tbondwilkinson commented 1 year ago

We had a feature request from a team to perform the default focus behavior on a fragment navigation, as if you had clicked on the link with a simple fragment and NOT intercepted.

Aka, scroll the element with the fragment into view.

Would it be difficult to add this as an option to the focus configuration in intercept?

tbondwilkinson commented 1 year ago

I think this is enabled with after-transition