Closed Bug 46213 Opened 25 years ago Closed 25 years ago

:hover pseudoclass not activated for elements with children

Categories

(Core :: Layout, defect, P3)

All
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 5693

People

(Reporter: sungod, Assigned: clayton)

Details

Attachments

(2 files)

From Bugzilla Helper: User-Agent: Mozilla BuildID: 2000071910 If a { display: block; } element has properties set for the :hover pseudoclass, those properties are not activated while the mouse pointer is over any descendent of that element. They should be, though, as should the :hover properties for that descendent. Reproducible: Always Steps to Reproduce: 1. Download attached menu.xml 2. Download attached menu.css 3. Open menu.xml in mozilla. 4. Mouse over the text "Menu Test 1" 5. Mouse over the text "Menu Test 2" 6. Mouse over the yellow margin to the left or right of "Menu Test 2" 7. Mouse over the yellow margin down the left or right of the eight menu choices below "Menu Test 2" 8. Mouse over the text in any of the eight menu choices below "Menu Test 2" Actual Results: At step 4 above, the "menyu" element did not resize to show menu contents. At step 5 above, the "menyu" element did not resize to show menu contents. At step 8 above, the "menyu" element collapsed to its original size since the mouse was over a child element. Expected Results: At step 4 above, the "menyu" element should resize to show menu contents. At step 5 above, the "menyu" element should resize to show menu contents. Steps 6 and 7 are correct behavior. At step 8 above, the "menyu" element should have STAYED resized and activated and :hover elements for the child element (mouseover pre-glow effects, whatever). You may need to make your Mozilla window wider than usual to use these test-case attachments correctly. Also try changing the menutest font-size property in menu.css to try this with larger and smaller fonts. A separate bug will be filed for having to change "menu" to "menyu" in the XML, due to collision with the XUL CSS.
Sorry, my initial search for duplicate bugs was too narrow. Found this is an old bug. These test case documents are useful though; I'll refer that bug to them here. *** This bug has been marked as a duplicate of 5693 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Verified dupe.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: