Bug 18242 - :hover should work with links only in quirks mode
Summary: :hover should work with links only in quirks mode
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://managerzone.com/
Keywords: HasReduction
Depends on:
Reported: 2008-03-31 11:11 PDT by jasneet
Modified: 2011-10-20 04:42 PDT (History)
5 users (show)

See Also:

screenshot (220.33 KB, image/jpeg)
2008-03-31 11:12 PDT, jasneet
no flags Details
reduction (325 bytes, text/html)
2008-03-31 11:13 PDT, jasneet
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jasneet 2008-03-31 11:11:54 PDT
I Steps:
Go to 
Scroll to the bottome of the page.
Mouseover on the footer text.

II Issue:
The text changes color from gray to white on mouseover (example mouseover on Copyright text). The links don't change the color only the non-hyperlink text does.

III Conclusion:
.bottom_links:hover { color: #ffffff; } is causing the issue. IE/FF don't honor the above if it is not the hyperlink while Safari/Opera do.

IV Other browsers:
IE7: ok
FF3: ok
Opera9.24: not ok

V Nightly tested: 31386
Comment 1 jasneet 2008-03-31 11:12:26 PDT
Created attachment 20242 [details]
Comment 2 jasneet 2008-03-31 11:13:20 PDT
Created attachment 20243 [details]
Comment 3 Robert Blaut 2008-06-03 06:14:00 PDT
The test case is rendered in quirks mode. So Firefox behaves like IE and doesn't honor :hover on other elements than links as IE does it in earlier implementations. 

The CSS 2.1 standard says that :hover applies to all elements, not only to links. So according standard the issue is not bug. It's expected behavior. But if we want to be consistent with Firefox and IE in quirks mode we should consider the issue as a real bug.

What we should do with this issue? Is it a really needed to extend quirks mode to this case also? 
Comment 4 Tab Atkins 2011-10-19 20:44:33 PDT
I've pinged Henri Sivonen from Mozilla to see if he feels it's an important quirk that we should emulate.

I believe we should minimize the number of quirks that we support, and only add new ones if vitally necessary.
Comment 5 L. David Baron 2011-10-19 21:05:14 PDT
WebKit also has the quirk for raw :hover, as Gecko does.  Gecko used to have the quirk for .class:hover as well, but that was removed in Firefox 6 in https://bugzilla.mozilla.org/show_bug.cgi?id=197686
Comment 6 Tab Atkins 2011-10-19 21:10:20 PDT
In current Firefox (greater than FF3), we have matching quirks.  We both match raw ":hover" on links only when in quirks mode, but match ".class:hover" on everything.

So, looks like nothing should be changed.