Open Bug 1668061 Opened 4 years ago Updated 4 months ago

Element doesn't receive click event if the body has negative z-index

Categories

(Core :: Web Painting, defect, P3)

Firefox 81
Desktop
Unspecified
defect

Tracking

()

Webcompat Priority P3

People

(Reporter: ksenia, Unassigned)

References

()

Details

Attachments

(1 file)

Attached file 58082.html

This was initially reported in https://github.com/webcompat/web-bugs/issues/58082

Steps to reproduce:

  1. Open https://www.tretti.se/ in Firefox on mobile
  2. Wait for the cookie modal window to show up
  3. Click on "Acceptera alla" button to accept cookies

Expected:
Window closes

Actual:
Window stays open

I've attached a reduced test case, which is also reproducible on desktop.

The behavior seems to be caused by the body element having negative z-index. In Firefox the targeted div is not hit-testable, however text inside it can be selected with drag-select. In Chrome the element is hit-testable and receives the click event.

Webcompat Priority: ? → revisit

I'm able to reproduce in desktop with the attached test case. This seems like a fairly fundamental hit-testing difference between Chrome and FF, not specific to APZ. Moving to Web Painting since that's where display-list hit-testing happens.

Component: Panning and Zooming → Web Painting

Spec issue, marking this as lower priority.

Severity: -- → S3
Priority: -- → P3
Webcompat Priority: revisit → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: