Open Bug 294910 Opened 20 years ago Updated 2 years ago

the drop-down box in a <select> tag isn't treated as a child of the tag's parents wrt :hover

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: bugs, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050421 Firefox/1.0.3 (Debian package 1.0.3-2)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050421 Firefox/1.0.3 (Debian package 1.0.3-2)

When you activate a <select> tag, the drop-down box is not treated as a child
element of the tag or of it's parent, with respect to the parent. So, if you
apply CSS style to a parent element using :hover, it does not take effect when
focus is on the drop-down. The test case is an extreme example where :hover is
necessary for the element to be visible. Thus, this behaviour renders the
drop-down useless.

Reproducible: Always

Steps to Reproduce:
1. hover over the h3.
2. keeping within the boundaries of the div (marked 1px border), select the drop
down. A double-click may be necessary (see bug 163503).
3. move the mouse carefully over the drop-down

Actual Results:  
the drop-down disappears, as the :hover condition isn't satisfied and thus the
style reverts to display: none

Expected Results:  
The :hover condition should still be met, so the div and select, drop-down and
all, should remain.
Attached file test-case as described
Here's a copy of that test case incase my site disappears.
WFM - Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050519
Firefox/1.0+
Fails with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050520
Firefox/1.0+

Fails with Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.8)
Gecko/20050511 Firefox/1.0.4

(for sake of comparison, works in konqueror/safari, fails more fundamentally in
the IEs I've tried)
Works for me: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2)
Gecko/20050520 Firefox/1.0+
but
fails: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041110
Firefox/1.0

(so maybe this was purposely fixed between those revisions in win32-specific code?)
WFM - Windows XP/Firefox 1.0.6 (perhaps this only affects other ports?)
Component: General → GFX: Gtk
Product: Firefox → Core
QA Contact: general → gtk
Version: unspecified → Trunk
I can reproduce the problem in Firefox 20070614 trunk on Linux.
Component: GFX: Gtk → Event Handling
Keywords: testcase
QA Contact: gtk → events
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: