Does google chrome have problems setting up: css properties visited?

I just want to find out if anyone has the same problem as me. Basically, I cannot set the background color for the visited hyperlink to a different background color.

Is this a known issue for Google Chrome? I saw people who raised a similar problem with the background image. setting the color attribute seems to work fine.

this is the code i used:

a:visited{ background-color: red; } 

Any information would be appreciated.

Regards, Andrew

+4
source share
2 answers

Use the following instead:

 a { background-color: white; } a:visited{ background-color: red; } 

For security reasons - in particular, to prevent sniffing of history - Chrome very strictly limits what you can do with the: visited selector.

+6
source

This seems to be unsupported for security reasons, and will also be in Firefox, as described in this answer .

+2
source

All Articles