Closed Bug 448783 Opened 16 years ago Closed 16 years ago

:hover attributes do not apply to elements only described by a class (".myclass") in quirks mode

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: nicolasweber, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

324 bytes, text/html
Details
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

In the attached file, the style of the text is not changed when hovering the text with the mouse. It works with Safari as is. To make it work in Firefox, I have to use `span.global:hover` instead of `.global:hover`.

Reproducible: Always

Steps to Reproduce:
1. Open the attached minimal testcase
2. Hover over the text
Actual Results:  
The appearance of the text does not change.

Expected Results:  
The text should become blue and underlined while hovering.
Attached file testcase
This is quirks-mode behavior added intentionally in bug 169078.  If you add "<!DOCTYPE html>" to the top of your file, it will work the way you expect.

I'm not convinced the quirk is justified, especially given that Safari doesn't have the quirk.  David, Boris, what do you guys think?
Blocks: 169078
Status: UNCONFIRMED → NEW
Component: Layout: View Rendering → Style System (CSS)
Ever confirmed: true
Keywords: testcase
QA Contact: layout.view-rendering → style-system
Summary: :hover attributes do not apply to elements only described by a class (".myclass") → :hover attributes do not apply to elements only described by a class (".myclass") in quirks mode
What's changed?  Are pages using .class:hover less now?  Has IE's behavior here changed, for example?

I suspect the answer is that nothing has changed and that Safari just has worse web compat here than we do....
Works fine with the <!doctype html>, thanks :-)
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Resolution: FIXED → WORKSFORME
(In reply to comment #3)
> What's changed?  Are pages using .class:hover less now?  Has IE's behavior here changed, for example?

1.  hover on elements other than <a> came with IE7 (standards mode only)
2.  number of pages in standards mode increased 

So we can assume  .class:hover  isn't used less but more properly now than 2002 (when bug 169078 was filed).

(Opera 9-9.5, like Safari, has apparently no compatibility problems)
OS: Mac OS X → All
Hardware: Macintosh → All
> 1.  hover on elements other than <a> came with IE7 (standards mode only)

That's fine.  In standards more we follow the standards.  This whole discussion is about what the quirks mode behavior should be.  So "pages" means "pages that are in quirks mode".
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: