WICG / scroll-to-text-fragment

Proposal to allow specifying a text snippet in a URL fragment
Other
586 stars 43 forks source link

Fix application of force-load-at-top #243

Closed bokand closed 9 months ago

bokand commented 9 months ago

Currently force-load-at-top is checked in the 'scroll to the fragment' steps. This is wrong since it shouldn't apply on same-document navigations and it should also affect history scroll restoration.

Move this check to happen in the 'update document for history step application' where history scroll is restored and where we can differentiate between new- and same-document cases.

Fixes #186


Preview | Diff