I have some questions about the :visited pseudo-class:
- Based on what do browsers decide when the
:visitedpseudo-class should be applied to a hyperlink? - Do they take this information from the browser’s page history or is it stored per-session or somewhere else?
- Is it possible (for the developer of a web page) to control for how long the
:visitedpseudo-class should be applied to hyperlinks?
(Note: I’m not trying to solve an actual problem, I’m just wondering how it works)
It’s applied when a link has been visited based on the browser history. Clearing your history will clear the visited state. There’s no “timeout”, as far as I know.