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

Re: MacIE 5.0 CSS bug

From: Ian Hickson <py8ieh@bath.ac.uk>
Date: Tue, 28 Mar 2000 22:21:58 +0100 (BST)
To: Walter Ian Kaye <walter@natural-innovations.com>
cc: MacIE-Talk@lists.boingo.com, www-style@w3.org
Message-ID: <Pine.GSO.4.04.10003282214350.21657-100000@mary.bath.ac.uk>
On Tue, 28 Mar 2000, Walter Ian Kaye wrote:

> 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?

The cascade is working properly. What you want is the :visited above
the :hover, since they have the same weight (011). So this is not a
bug in MacIE5. 

However, even better would be:

   :link { color: #0000FF; background: transparent; }
   :visited { color: #666666; background: transparent; }
   :link:active, :visited:active { color: #000000; 
      background: #999999; text-decoration: underline; }
   :link:hover, :visited:hover { color: #0000FF; 
      background: #999999; text-decoration: underline; }

See also:
   http://www.people.fas.harvard.edu/~dbaron/css/1999/09/links

-- 
Ian Hickson                            ("`-''-/").___..--''"`-._   
http://www.bath.ac.uk/%7Epy8ieh/        `6_ 6  )   `-.  (     ).`-.__.`)
                                        (_Y_.)'  ._   )  `._ `. ``-..-' fL
Member, Mozilla Quality Assurance     _..`--'_..-_/  /--'_.' ,'
Browser Standards Compliance Team    (il).-''  (li).'  ((!.-'    
Received on Tuesday, 28 March 2000 16:22:10 GMT

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