Closed Bug 12231 Opened 25 years ago Closed 25 years ago

[EVENTTARG] events going to wrong element: negative margins

Categories

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

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: joki)

Details

(Whiteboard: [TESTCASE])

Attachments

(1 file)

This is the first of two bugs I am filing on events going to the wrong
elements.  Bug 1413 also deals with this problem (for floats), this one for
negative margins, and the next one for visibility: hidden.  They are related,
but probably separate.  There may be other existing bugs too...

DESCRIPTION:  When two elements overlap because of negative margins, events are
going to the one that is covered.  (I think) they should go to the one that is
visible.

STEPS TO REPRODUCE:
 * Load attached testcase
 * note that clicking in paragraph one causes an alert with a message that says
that you have clicked in paragraph one, and likewise for the area of paragraph
two that does not overlap with one
 * click the area of paragraph two that covers part of one - i.e., near the
words "paragraph one".

ACTUAL RESULTS:  The alert says:  "You clicked on paragraph one."

EXPECTED RESULTS: The alert should say:  "You clicked on paragraph two."

DOES NOT WORK CORRECTLY ON:
 * Linux, apprunner, 1999-08-16-08-M9
Whiteboard: [TESTCASE]
Status: NEW → ASSIGNED
Target Milestone: M12
OS: Linux → All
Hardware: PC → All
ALSO DOES NOT WORK CORRECTLY ON:
 * Windows, apprunner, 1999-08-24-09-M10

Marking All/All.
Target Milestone: M12 → M14
Cool bug but it'll have to wait a bit longer.
Summary: events going to wrong element: negative margins → [EVENTTARG]events going to wrong element: negative margins
Summary: [EVENTTARG]events going to wrong element: negative margins → [EVENTTARG] events going to wrong element: negative margins
Target Milestone: M14 → M16
Moving M16.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed.
Keywords: verifyme
verified
Status: RESOLVED → VERIFIED
Keywords: verifyme
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: