W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2018

Re: [csswg-drafts] [selectors] Solve :visited once and for all

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Sun, 12 Aug 2018 22:52:22 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-412377409-1534114340-sysbot+gh@w3.org>
Going back to Tab's post:

I agree that those 3 cases cover the main situations where `:visited` is both useful and of little privacy concern.

The first case should also be of minor implementation cost: you only need to filter out the visited list by the current page origin when matching the pseudoclass.

The other cases would require more implementation overhead, because the history list would need to track referrers for every page. So that might be best left up to browser discretion.

An alternative option would be for the browser to safelist certain origins (e.g., your favourite search engine) on which `:visited` could apply to cross-origin links without privacy masking. But again, that would need to be at browser discretion, and hopefully with plenty of transparency to the user about the impact of marking an origin as "safe" in this context.

All that said: For authors, having a fully functional, no-silliness, `:visited` pseudoclass for _same-origin_ links would help do things like [showing "unread" badges on article lists](https://una.im/hacking-visited/) without hacking around with white text on white backgrounds.

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3012#issuecomment-412377409 using your GitHub account
Received on Sunday, 12 August 2018 22:52:24 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:35 UTC