W3C home > Mailing lists > Public > www-style@w3.org > March 2000

Re: MacIE 5.0 CSS bug

From: Tim Bagot <tsb@earth.li>
Date: Tue, 28 Mar 2000 15:58:01 -0500 (EST)
Message-ID: <Pine.LNX.3.96.1000328205259.517D-100000@c32.keble.ox.ac.uk>
To: Style Sheet mailing list <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:04 GMT