Bad Hit Test on preserve-3d Descendant

#464173566 Assigned P3

Bug

Click/hit testing is incorrect on descendants of elements using transform-style: preserve-3d. Clicking on a visible element may report the wrong target in the hit test.

Demo

Click on the colored planes below. The hit log shows which element received the click. The green plane uses preserve-3d, the blue plane is a child rotated 90deg. The amber inner square should be clickable.

click a plane

Expected vs Actual

Expected

Clicking on the amber/green/blue planes reports the correct element ID.

Actual (buggy)

Clicks on visible surfaces may be attributed to the wrong element, or miss entirely due to incorrect 3D hit-testing of preserve-3d descendants.