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

Re: MacIE 5.0 CSS bug

From: Tantek Çelik <tantek@cs.stanford.edu>
Date: Tue, 28 Mar 2000 13:13:06 -0800
Message-Id: <200003282113.QAA26719@tux.w3.org>
To: Walter Ian Kaye <walter@natural-innovations.com>, MacIE-Talk@lists.boingo.com
CC: "www-style@w3.org" <www-style@w3.org>
From: Walter Ian Kaye <walter@natural-innovations.com>
Date: Tue, Mar 28, 2000, 12:48 PM

> Oh Taaaaanteeeeek... ;)
>
> In my page I have:
>
> <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.
>
> What's up?

What's up is our quality and strictness!

Sounds like you actually found a bug in 4.5 that was fixed in 5.0.

In your example, the :visited rule comes after the :hover rule and supercedes
it since they have the same specificity.

Try this (I just moved the :visited rule to immediately after the :link rule):

<STYLE TYPE="text/css">
<!--
A:link    { color: #0000FF }
A:visited { color: #666666 }
A:hover   { color: #0000FF; background: #FFFF00; text-decoration: underline }
A:active  { color: #000000; background: #999999; text-decoration: underline }
-->
</STYLE>

Tantek
Received on Tuesday, 28 March 2000 16:13:38 GMT

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