I already read about that here: https://developer.mozilla.org/en-US/docs/Web/CSS/:visited where it says more than text colour can be changed: "color, background-color, border-color, border-bottom-color, border-left-color, border-right-color, border-top-color, column-rule-color, outline-color, text-decoration-color, and text-emphasis-color."
Whether or not that's out of date, the :visited rule I have in my snippet sets only the
color property, and that is indeed getting set when I expect it to.
I'm expecting the :link rule (underline, in my case) to be removed once the link is visited, since the spec and the MDN page both say that :link should only be applied to unvisited links.
Do I understand correctly that the privacy issue therefore also affects :link?
I updated my snippet so no disallowed properties are being set either on :link or on :visited. Now, <a> is underlined, :link gets a light grey background colour, and :visited gets green text.
I would expect the light grey background to disappear when the link is visited.
Or are you saying that literally the only thing allowed to change between visited and unvisited states is the text colour? If so, maybe the docs on MDN can be updated accordingly? The :link and :visited docs are misleading -- they seem to say only one of :link or :visited can apply at a time, where clearly Firefox is applying both sets of rules at once when the link is visited.