Bug 9737

Summary: Quirks Mode: :hover should only apply to links, images, forms
Product: WebKit Reporter: Mark Rowe (bdash) <mrowe>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, anantha, ap, bfulgham, chris, mitz, rniwa, simon.fraser, zalan, zcorpan
Priority: P2 Keywords: HasReduction
Version: 418.x   
Hardware: Mac   
OS: OS X 10.4   
URL: http://www.laneneave.co.nz/
Attachments:
Description Flags
Reduced test case demonstrating the problem
none
Same reduction with a doctype added to demonstrate the Firefox quirksmode behaviour none

Description Mark Rowe (bdash) 2006-07-05 01:59:11 PDT
Steps to reproduce:
1) Visit http://www.laneneave.co.nz/.
2) Move the mouse cursor over the body text of the page.

Expected result:
No change.

Observed result:
Text is underlined.

Other comments:
Firefox doesn't display the underline.
Comment 1 Mark Rowe (bdash) 2006-07-05 02:03:31 PDT
Created attachment 9203 [details]
Reduced test case demonstrating the problem
Comment 2 Mark Rowe (bdash) 2006-07-05 02:08:05 PDT
Firefox has a quirk that limits the application of :hover psuedoclass to links, images, and form controls, unless the selector includes tag names, ids, or attributes.  This is documented at http://developer.mozilla.org/en/docs/Mozilla_Quirks_Mode_Behavior (last item under Miscellaneous & Style), and is related to bug https://bugzilla.mozilla.org/show_bug.cgi?id=96984.

I've noticed this issue on a few occasions in the past, so I think it would be worthwhile adopting a similar quirks-mode behaviour if practical.
Comment 3 Mark Rowe (bdash) 2006-07-05 02:09:17 PDT
Created attachment 9204 [details]
Same reduction with a doctype added to demonstrate the Firefox quirksmode behaviour
Comment 4 Mark Rowe (bdash) 2007-04-28 06:59:19 PDT
*** Bug 13527 has been marked as a duplicate of this bug. ***
Comment 5 Mark Rowe (bdash) 2007-09-24 23:54:39 PDT
*** Bug 15269 has been marked as a duplicate of this bug. ***
Comment 6 Simon Pieters (:zcorpan) 2012-08-16 03:30:04 PDT
AFAICT this is fixed in webkit now, but only for links, which matches Opera/IE/spec.
http://dvcs.w3.org/hg/quirks-mode/raw-file/tip/Overview.html#the-:active-and-:hover-quirk
Comment 7 Ahmad Saleem 2022-07-24 04:00:18 PDT
I am not able to reproduce this bug in Safari 15.6 on macOS 12.5 using attached test case (Reduced test case demonstrating..), it shows "underline" while hovering on both lines across all other browsers (Chrome Canary 106 and Firefox Nightly 104) matching current Safari behavior. It is also confirmed in Comment 06.

I think this can be marked as "RESOLVED INVALID" since Safari didn't change the behaviour but Firefox did. Thanks!
Comment 8 zalan 2022-07-24 07:07:47 PDT
Thank you!