demo · v132

Live :visited rendering on real links

The triple-key partition means links you've only visited from another (top-level, frame-origin) context render as unvisited here. Click the “create test history” button to plant a visit from THIS page, then refresh; the partitioned link shown below will go purple. Cross-origin sibling links will not.

:visited (rebeccapurple) :link
The triple-key is (link-url, top-level-site, frame-origin). A click recorded by one site does not paint a link purple on another site, no matter what URL pattern they share. Style of cross-origin links above is always :link, even if you separately visited those URLs in other tabs.

see also