Bug 9279 - Quirksmode: Hover with adjacent selector doesn't work
Summary: Quirksmode: Hover with adjacent selector doesn't work
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 420+
Hardware: All All
: P2 Normal
Assignee: Dave Hyatt
URL: http://sonofhans.net/css/snippets/adj...
Keywords: HasReduction
: 11006 17477 17976 (view as bug list)
Depends on:
Blocks: 9610 12520
  Show dependency treegraph
Reported: 2006-06-02 15:09 PDT by Adele Peterson
Modified: 2008-03-20 20:42 PDT (History)
9 users (show)

See Also:

Test case (:hover + :focus) (520 bytes, text/html)
2008-01-30 04:56 PST, Sjoerd Tieleman (tieleman)
no flags Details
Fixes the problem (1.56 KB, patch)
2008-03-19 11:46 PDT, Dave Hyatt
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adele Peterson 2006-06-02 15:09:22 PDT

"The hover selector combined with an adjacent selector (dt:hover + dd { color : red; }) works buggily (Safari) or not at all (Opera), while these browsers support the two of them separately.

Test page http://sonofhans.net/css/snippets/adjacent_siblings_safari.html
Workaround is not included
Reported by: Randall Hansen."
Comment 1 Joost de Valk (AlthA) 2006-06-24 14:15:51 PDT
Good testcase, bug in component CSS.
Comment 2 Mark Rowe (bdash) 2006-10-30 04:30:00 PST
*** Bug 11006 has been marked as a duplicate of this bug. ***
Comment 3 Sjoerd Tieleman (tieleman) 2008-01-30 04:56:13 PST
Created attachment 18791 [details]
Test case (:hover + :focus)

Verified that this is still an issue in the nightly builds and not only occurs when using the :hover pseudoclass, but also when using :focus. Camino renders this correctly.
Comment 4 Robert Blaut 2008-02-11 11:44:20 PST
Similar bug 12998
Comment 5 Robert Blaut 2008-02-21 11:59:15 PST
*** Bug 17477 has been marked as a duplicate of this bug. ***
Comment 6 Dave Hyatt 2008-03-19 11:46:35 PDT
Created attachment 19886 [details]
Fixes the problem

I'll make a test case using class manipulation.
Comment 7 Sam Weinig 2008-03-19 11:59:47 PDT
Comment on attachment 19886 [details]
Fixes the problem

r=me.  (pending changelog and test)
Comment 8 Dave Hyatt 2008-03-20 11:11:59 PDT
Comment 9 Dave Hyatt 2008-03-20 20:42:58 PDT
*** Bug 17976 has been marked as a duplicate of this bug. ***