[Webkit-unassigned] [Bug 174564] New: click event does not dispatch to parent when child target stops hit testing after mousedown
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jul 16 06:55:29 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=174564
Bug ID: 174564
Summary: click event does not dispatch to parent when child
target stops hit testing after mousedown
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: graouts at apple.com
CC: bfulgham at webkit.org, simon.fraser at apple.com,
zalan at apple.com
Created attachment 315605
--> https://bugs.webkit.org/attachment.cgi?id=315605&action=review
Testcase
See the attached test case. It has a <div> with a child <div>, both the parent and the child have the same initial, overlapping bounds. The parent shows an alert when receiving a "click" event, the child shrinks itself to 25% of its size using a "transform: scale(25%)" style when the ":active" pseudo-class matches. If you click in the center of the parent, the "click" event is dispatched. If you click on the left, top, right or bottom of the parent, there is no "click" event dispatched, seemingly because the original event target, the child, is no longer hit-testing by the time the mouse pointer is released.
Firefox behaves the same as WebKit, but Chrome dispatches the "click" event in all cases, which seems correct to me.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170716/97e74e6c/attachment.html>
More information about the webkit-unassigned
mailing list