Element doesn't receive click event if the body has negative z-index
Categories
(Core :: Web Painting, defect, P3)
Tracking
()
Webcompat Priority | P3 |
People
(Reporter: ksenia, Unassigned)
References
()
Details
Attachments
(1 file)
553 bytes,
text/html
|
Details |
This was initially reported in https://github.com/webcompat/web-bugs/issues/58082
Steps to reproduce:
- Open https://www.tretti.se/ in Firefox on mobile
- Wait for the cookie modal window to show up
- 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.
Updated•4 years ago
|
Comment 1•4 years ago
|
||
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.
Comment 2•4 years ago
|
||
Spec issue, marking this as lower priority.
Updated•2 years ago
|
Description
•