You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the polyfill updates the URL through pushState(), CSS pseudo-classes like :target are not updated accordingly.
This is actually a browser bug as the spec is very clear about this, but we can maybe still work around it by setting location.hash after the scroll is completed (so it doesn't interrupt the smoothscroll), similar to pendingFocusChange – shouldn't be visible at all, as the hash was updated by history.pushState before already, but hopefully it force-updates :target CSS classes etc.
The text was updated successfully, but these errors were encountered:
When the polyfill updates the URL through
pushState()
, CSS pseudo-classes like:target
are not updated accordingly.This is actually a browser bug as the spec is very clear about this, but we can maybe still work around it by setting
location.hash
after the scroll is completed (so it doesn't interrupt the smoothscroll), similar topendingFocusChange
– shouldn't be visible at all, as the hash was updated byhistory.pushState
before already, but hopefully it force-updates:target
CSS classes etc.The text was updated successfully, but these errors were encountered: