Closed daun closed 1 year ago
Did you test the exact native behavior of :target
? If I recall correctly, the selector is not being applied if clicking on an anchor link that scrolls on the same page. It's only applied if visiting a page with a hash anchor directly, doesn't it?
I'm only on mobile so I can't properly test it right now 😩😉
@hirasso As far as I know, :target
gets updated whenever the URL changes, which also happens when jumping between anchors on the same page.
Description
:target
selector that stops working when updating URLs via History APImarkScrollTarget
to mark targets with adata-swup-scroll-target
attributeChecks
master
branchnpm run lint
)Additional information
Closes #53