The background color does not work on a: visited but it works if I add any background color to {{{{{{{{{ {{{{{{{{{{{{{{{{{{MB}

advertisements

background-color doesn't work on a:visited but it works if i add any background color to a {backgroud:#fff}, Is it a bug?

See this example http://jsfiddle.net/jitendravyas/CMWWm/1/ green background on a:visited will not work. But

Now if i add a {background:#fff} at top then green background on a:visited will start to work. http://jsfiddle.net/jitendravyas/D6vGX/1/


Check it, Firefox doing something privacy-related changes to :visited , Its looking strange,

We’re limiting the CSS properties that can be used to style visited links to color, background-color, border-*-color, and outline-color and the color parts of the fill and stroke properties. For any other parts of the style for visited links, the style for unvisited links is used instead.

--from mozilla

http://hacks.mozilla.org/2010/03/privacy-related-changes-coming-to-css-vistited/