Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upClick event erroneously firing on div which is not visible due to CSS translateZ transform. #12411
Comments
|
@pcwalton I guess hit testing is somehow not taking the transform into account? Could you look into this? |
|
@jdm Out of interest, just to take a look, where could I find the relevant hit testing code? I would just be interested to read it and further my understanding a little. |
|
Look for the code that assigns |
|
@jdm It may be that the code that determines whether to check the descendants of a stacking context isn't taking the transform into account, and as such its items never get checked. |
|
Hit testing takes into account transforms, but only in the x and y dimension, which is why I think this test is failing. |
|
This still happens |
When an element has been transformed such that it is no longer visible, clicking anywhere on the page in Servo fires a click event on the element.
In example below, FF/Chrome the click event (correctly) does not fire. In Servo, clicking anywhere on the page fires the event, even though the is "behind the screen" and not visible.
Online test case here.