I am making a checklist, that ticks off links that have been clicked. It works by changing the background-position of a gif when the link is ‘visited’. I have also changed the color of the text to check that it works.
Everything works fine in FF, in Chrome and Safari the color will change, but the image will not.
Funny that, cos if I change the position of the background-image in the hover state, it works fine…
I haven’t had time to test this but how about using the “visited” background for the A tag then setting alternatives for :link :active :hover and :focus?
Yeah, I remember that discussion. I still believe the better solution was to have the browser load the visited image whether it was needed or not. This would defeat the privacy invasion while retaining the option for designers. Offending sites would be crippled though by the image request load, but serves them right.
At the very least, background-position should be allowed since it doesn’t incur an image load.
to summarize: as long as you have a :visited in a selector and a background setting in its rules, WebKit will probably catch it and will not allow the use.
A design issue exists in WebKit’s handling of the CSS :visited pseudo-class. A maliciously crafted website may be able to determine which sites a user has visited. This update limits the ability of web pages to style pages based on whether links are visited.