Ask HN: Whatever happened to styling visited links?
2 comments
Modern browsers have begun deprecating the a:visited because of the privacy problems that allowing it exposed. (More details on http://hacks.mozilla.org/2010/03/privacy-related-changes-com..., but essentially I could have the CSS set your visited link to a color, check that color in javascript and know if you'd been to that site.)
[deleted]
You can still use :visited to change the link color, that's still supported, and it's the most common way a visited link is styled differently from an unvisited link. This way nothing gets positioned differently because a link has been visited, and javascript can lie about a link's colour.
So this sounds like a deliberate design decision, or at least a genuine design trend.
So this sounds like a deliberate design decision, or at least a genuine design trend.
This came as a huge surprise for me, because I've been religiously styling my "a:visited" links for years (see my own blog: http://sachagreif.com) and never noticed that this practice was not as popular anymore.
Any explanation for this? Do you personally still style them?