- From: Guilherme Simoes via GitHub <noreply@w3.org>
- Date: Thu, 07 May 2026 16:43:05 +0000
- To: public-css-archive@w3.org
This feels a bit of a necropost, but I want to give my example. [My blog](https://guilhermesimoes.github.io/blog/) does this: > if you use :target to highlight an element after the user scrolls to it via a fragment hyperlink, with some sort of fading-out flash However, I **don't** want the fragment hyperlinks to be added to the history state of my site. If a user clicks on 1 or 2 footnotes, then when he presses back he doesn't get sent to the previous page, he gets sent to the previous footnotes. If I use `history.replaceState()` to avoid adding new history entries then I lose access to `:target`. Seems like there's no current solution for this problem, or is there? -- GitHub Notification of comment by guilhermesimoes Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6942#issuecomment-4399109283 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 7 May 2026 16:43:10 UTC