Open Bug 1843728 Opened 1 year ago Updated 1 year ago

Click areas break using CSS 3D transforms

Categories

(Core :: Web Painting, defect)

Desktop
All
defect

Tracking

()

People

(Reporter: 15063662, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

583 bytes, text/html
Details
Attached file test.html (obsolete) —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0

Steps to reproduce:

open "test.html" and click green <div>

Actual results:

Firefox for my Windows desktop does nothing.
Firefox for my Android mobile phone displays an alert box with a message "1".

Expected results:

Firefox for my Windows desktop should display an alert box with a message "1".

Component: Untriaged → Layout
OS: Unspecified → Windows 11
Product: Firefox → Core
Hardware: Unspecified → Desktop
Attached file test.html

remove unnecessary things

Attachment #9344018 - Attachment is obsolete: true

Using document.body.addEventListener('click',console.log) I find the event target is "div#scene" when I click "div#area".
The alert box is successfully displayed only when I click the left edge of green "div#area", because it is not covered by "div#scene".

See Also: → 1377841, 1810905

I can reproduce this on Nightly117.0a1 Windows10 when I click on the right portion of the area.

Status: UNCONFIRMED → NEW
Ever confirmed: true

The bug occurs when the parent element div#scene covers div#area.
Settingz-index: -9999 or transform: translateZ(-9999px) for div#scene don't work.
The best case solution is to set pointer-events: none for div#scene and pointer-events: visiblefill for div#area.

(In reply to Alice0775 White from comment #3)

I can reproduce this on Nightly117.0a1 Windows10 when I click on the right portion of the area.

Same for me, in Nightly on Linux. The right portion of the green area doesn't trigger the popup for me, when I click it.

Possibly related to bug 1738017; adding see-also for now. Also, reclassifying under the "Web Painting" component, which is responsible for handling the geometry of 3d transforms (including click targeting).

Component: Layout → Web Painting
OS: Windows 11 → All
See Also: → 1738017
Version: Firefox 115 → Trunk

The severity field is not set for this bug.
:tnikkel, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(tnikkel)
Severity: -- → S3
Flags: needinfo?(tnikkel)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: