Closed Bug 232694 Opened 21 years ago Closed 21 years ago

Adjacent sibling selectors using pseudo class :hover broken

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Linux
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 15608

People

(Reporter: roth.michael, Assigned: dbaron)

References

()

Details

User-Agent:       
Build Identifier: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.6) Gecko/20040113

Given the following HTML code:

<html><head><style>

p:hover + p { background: yellow; }

</style></head><body>
<p>First paragraph.</p><p>Second paragraph.</p>
</body></html>

If you point your mouse above the first paragraph, second paragraphs background
color should become yellow, but it doesn't.




Reproducible: Always
Steps to Reproduce:
Visit the demonstration page and point your mouse to the line "First paragraph".
Actual Results:  
The second paragraphs background color is still unchanged.

Expected Results:  
But the second paragraphs background color should change to yellow.

Sometimes, if you move your mouse pointer fast and often above both paragraphs,
the second paragraphs background color will change correctly. But only sometimes.
Fixed since 1.6.

*** This bug has been marked as a duplicate of 15608 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.