hover pseudo-class is forced to have an element in the selector

RESOLVED WORKSFORME

Status

()

Firefox
General
RESOLVED WORKSFORME
10 years ago
9 years ago

People

(Reporter: Manuel Vázquez Acosta, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080129 Iceweasel/2.0.0.12 (Debian-2.0.0.12-1)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080129 Iceweasel/2.0.0.12 (Debian-2.0.0.12-1)

hover pseudo-class does not work with .class selectors. I did not notice any restriction in the CSS 2.1 specs for this.

Reproducible: Always

Steps to Reproduce:
1. Write a code like this:
<html>
 <head> <style type="text/css"> .buggy {border: 1pt solid blue} .buggy:hover {border: 1pt solid red} </style>
 <body> <p class="buggy"> Hello world. I'm a bug<p> </body>
</html>
2. View it in Firefox and pass the mouse over the paragraph.
Actual Results:  
The border change does not take place.

Expected Results:  
The hover pseudo-class should be honoured.

Writing "p.buggy:hover" instead of ".buggy:hover" works.

Comment 1

9 years ago
Confirm this in Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.4) Gecko/2008111319 Ubuntu/8.10 (intrepid) Firefox/3.0.4
(Reporter)

Comment 2

9 years ago
Confirmed fixed in Firefox 3.0.4: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.4) Gecko/2008112309 Iceweasel/3.0.4 (Debian-3.0.4-1)
Status: UNCONFIRMED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
Only use FIXED for when a patch is checked into the tree.
Resolution: FIXED → WORKSFORME
You need to log in before you can comment on or make changes to this bug.