Closed Bug 1433887 Opened 7 years ago Closed 7 years ago

Events don't seem to bubble from children of a button when they're absolutely positioned

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1089326
Tracking Status
firefox-esr52 --- affected
firefox58 --- affected
firefox59 --- affected
firefox60 --- affected

People

(Reporter: julienw, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

STR:
1. Open the attachment.
2. Click on the button itself
[OK] Some log should show up in the page.
3. Click on the 2 lines of text "click me I'm fixed" or "click me I'm absolute"
[KO] Nothing happens.

Note that this seems to work as expected in Chrome.

This works also when we use a normal link (<a>) instead of a button.

This is not a recent bug: I ran the testcase in v57 and v52, the bug reproduces in those versions too.
Attached file testcase (obsolete) —
OS: Unspecified → All
Hardware: Unspecified → All
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Attached file testcase v2
The issue happens with "position: relative" too if the element is out of the button.
Thanks Olli.

I noticed there are 2 different bugs, so you might want to keep this bug.

Bug 1: non-positioned children of a button never see the event. If they have a listener registered, the listener never runs. I believe this is bug 1089326. But the button itself is triggered.
Bug 2: Where there are children of a button that are positioned out of the button, clicking on them has no effect whatsoever. This is what this bug was about.

I realize they're similar: both bugs relate to the fact that a button's children are non-interactive.
Attachment #8946221 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: