Closed Bug 54318 Opened 24 years ago Closed 24 years ago

<a name=XXX>was affected by hover property.

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: hobbit_mak, Assigned: pierre)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20000926
BuildID:    2000092608

a:hover property is affect not only <a href=xxx> elamests, but also <a name=xxx>
elaments.

Reproducible: Always
Steps to Reproduce:
1.View page as follows
http://homepage1.nifty.com/hobbit/english/tolkien/versions.html

2.Move cursor to 1.1

Actual Results:  Background and color was changed.

It is a result of
A:hover { background:   #4040FA;
          color:        #F0F8FF}

in ie.css file		

Expected Results:  No such effect.
Why do you think :hover should not apply to all <a> elements???
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
QA Contact: chrisd → py8ieh=bugzilla
Resolution: --- → INVALID
To be a little more specific - see chapter 5 of CSS2, which defines "link pseudo-
classes" which apply to links and "dynamic pseudo-classes", which can apply to 
anything.  They can be mixed.  What you want is probably not |a:hover| but 
|:link:hover, :visited:hover|.  See 
http://www.people.fas.harvard.edu/~dbaron/css/1999/09/links

Verified invalid.
Status: RESOLVED → VERIFIED
Same as bug 143676, but I think there was a period of a year and a half during
which the behavior this bug and 143676 complain about didn't occur.
*** Bug 153997 has been marked as a duplicate of this bug. ***
*** Bug 159388 has been marked as a duplicate of this bug. ***
My bug filing came about because CSS1 specifically states that a:hover does not
apply to a elements that do not have an HREF. My understanding of the specs was
that CSS2 was like an addendum to CSS1. That is, unless something is explicitly
changed by CSS2, CSS1 rules still apply. I could find nothing in CSS2 that said
CSS1 rules about a:hover had changed.
Look closer.  :hover isn't in CSS1 at all.
*** Bug 173427 has been marked as a duplicate of this bug. ***
*** Bug 300623 has been marked as a duplicate of this bug. ***
*** Bug 304111 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.