[Webkit-unassigned] [Bug 42455] click event not caught by elements after a negative translateZ

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 6 02:12:55 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=42455





--- Comment #4 from Maxwell Terpstra <max at terpstra.ca>  2011-11-06 02:12:55 PST ---
Created an attachment (id=113780)
 --> (https://bugs.webkit.org/attachment.cgi?id=113780&action=review)
reduced test case

Reduced test case.

When an element is translated negatively in z and its parent does _not_ have -webkit-transform-style:preserve-3d, it will not receive mouse events (they will go to the parent instead) and can never be matched by the :hover pseudoclass. The CSS Transforms spec doesn't say whether or not this is expected behaviour.

However, sometimes it "works" anyway.  Very rarely when this test case is loaded, clicks events and :hover will still go to the negative-z element!  Referencing a non-existant stylesheet in the head seems to make this happen more reliably, although still not all the time. Usually when it does happen, the red DIV noticeably flickers when the page loads.

Interestingly, referencing a non-existance stylesheet also makes the text in the DIV disappear as long as the document is not loaded via the file:// protocol...

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list