Bug 14989

Summary: Selector consisting of just ":hover" doesn't match any elements
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: bdakin, benjamin, hyatt, sam
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: All   
OS: All   
Attachments:
Description Flags
test case none

Description Adam Roben (:aroben) 2007-08-16 11:55:30 PDT
Using a selector that is simply ":hover" doesn't match any elements.
Comment 1 Adam Roben (:aroben) 2007-08-16 11:56:18 PDT
Created attachment 15999 [details]
test case

Note that in Firefox this selector doesn't match the <p> elements, but does match the <input> and <button> elements.
Comment 2 mitz 2007-08-16 14:36:13 PDT
(In reply to comment #0)
> Using a selector that is simply ":hover" doesn't match any elements.

(in quirks mode)
Comment 3 Adam Roben (:aroben) 2007-08-17 13:48:16 PDT
Comment on attachment 15999 [details]
test case

Windows IE 7 has the same behavior as Safari 3 beta on this test case: :hover doesn't match any elements.
Comment 4 Benjamin Poulain 2014-11-01 16:12:56 PDT
Closing: that's the expected behavior in quirks mode https://quirks.spec.whatwg.org/#the-:active-and-:hover-quirk