Closed Bug 112950 Opened 23 years ago Closed 23 years ago

a:hover works :hover does not

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ve3ll, Assigned: dbaron)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.6+) Gecko/20011130
BuildID:    2001113003

trying to follow the great guru named raggett's
tutorial on style, i changed my a:hover to :hover
no difference on Opera and MSIE but big shock 
when viewed with mozilla/netscape 6.2/k-meleon
when cursor over my list bullet, the ordinary text of the list
changed to the hover color(red) but the link did not ...
neither should !!  stylesheet verified ok and :hover should be
equivalent to a:hover  but big hole here. 

Reproducible: Always
Steps to Reproduce:
1.go to my website
2.move to first bulleted list
3.curse over the bullet and see red ;-[  ;-[ 

Actual Results:  ordinary text turns red (hover color)

Expected Results:  ordinary text should stay in black ... ie no 
hover effect unless over a link
Works for me -- the links go red and non-underlined when I hover over them. 
However, they're not perfectly equivalent, and MSIE is quite buggy in this area.
 See http://www.people.fas.harvard.edu/~dbaron/css/1999/09/links
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Oh, I see, you're saying the ordinary text is turning red, and that's the bug. 
Well, it's not.  In CSS2, :link and :visited apply only to links, but :active,
:hover, etc. apply to all elements.  (In CSS1, :hover did not exist and :active
applied only to links.)
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
...so marking invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → INVALID
Date: Fri, 30 Nov 2001 18:21:48 -0500
From: John Russell <ve3ll@rac.ca>
To: dbaron@fas.harvard.edu
Subject: Re: [Bug 112950] a:hover works   :hover does not

yes the links work but what i pointed out is that if you
cursored over the BULLET, the regular text turns red
but not the link text ....  this is very wrong as positioning
on the bullet should have no effect.  Try cursing on
the bullet !!!!!
It's still not a bug.  :hover applies to all elements.  Use :link:hover,
:visited:hover if you want to match only links.  See
http://www.people.fas.harvard.edu/~dbaron/css/1999/09/links
You need to log in before you can comment on or make changes to this bug.