Re: MacIE 5.0 CSS bug

On Tue, 28 Mar 2000, Walter Ian Kaye wrote:

> <STYLE TYPE="text/css">
>    <!--
>    A:link    { color: #0000FF }
>    A:hover   { color: #0000FF; background: #FFFF00; text-decoration: underline }
>    A:active  { color: #000000; background: #999999; text-decoration: underline }
>    A:visited { color: #666666 }
>    -->
> </STYLE>
> 
> For visited links, the hover is not coloring the text blue. It worked in
> 4.5, but it's not working in 5.0. 

Aha. For such a link both the :hover and :visited pseudoclasses apply.
Since the two rules have the same origin, weight and specificity, the
second wins, so the colour remains #666666. Rearranging the rules, or
adding a separate :visited:hover rule, should have the desired effect.

Tim Bagot

Received on Wednesday, 29 March 2000 04:48:06 UTC