Closed Bug 586031 Opened 16 years ago Closed 16 years ago

CSS class hover behavior not functioning without accompanying html tag

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 197686

People

(Reporter: scotland, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 CSS Hover behavior is not currently not working in 3.6.8 when a class is specified generally without an accompanying html tag. example: <html> <head> <style type="text/css"> .right {height: 50px; width: 50px; background-color: #444;} .right:hover {background-color: #f90;} div.left {background-color: #000; width: 50px; height: 50px;} div.left:hover {background-color: #f90;} </style> </head> <body> <div class="right"> </div> <div class="left"> </div> </body> </html> Reproducible: Always Steps to Reproduce: 1.load example code from details field above in browser 2.scroll over to see that .right:hover shows no hover behavior while div.left:hover behaves as expected 3. Actual Results: No hover behavior on generic class declaration .right:hover Expected Results: expected color change of background on hover in this example
Attached file testcase (quirks mode) —
Mozilla/5.0 (Windows NT 5.1; rv:2.0b4pre) Gecko/20100806 Minefield/4.0b4pre 1. This is buggy in quirks mode only (Add a strict doctype like <!DOCTYPE html> on top and it works as expected, and it works in IE as well) 2. Webkit and Opera don't have this quirks 3. IE ignores :hover in quirks mode for all elements except for <a> (does nothing in both lines of the testcase) This is a dup of bug 197686, but ist's perhaps worth to ask: Do we need this old quirks mode behaviour these days? No, I'd say. This causes probably more confusion than it solves.
Component: General → Style System (CSS)
OS: Windows 7 → All
Product: Firefox → Core
QA Contact: general → style-system
Hardware: x86 → All
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: