[Webkit-unassigned] [Bug 16483] SVG should allow clicks to "fall through" to XHTML content when transparent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 18 16:11:18 PST 2007


------- Comment #1 from eric at webkit.org  2007-12-18 16:11 PDT -------
Ok, I think this test is wrong.


The event should dispatch to the front-most element under that mouse location. 
(I'm sure there is a spec which says this.)

In this case, that's the SVG <rect> element which is semi-transparent.  Since
pointer-events defaults to  "visiblePainted" the <rect> element can actually
accept events, and thus the hit testing stops.  An event is dispatched up the
tree to the <rect> element, through the <object> and <svg> elements, but NOT
touching the <html:a> elements which are not in the ancestor tree for the
<rect>.  Then the event bubbles back down through the same tree, again, never
touching the <html:a> elements.

If the <rect> had pointer-events="none" specified, then it would fail to
hit-test and the <html:a> element should actually be clickable.

We still fail this test with pointer-events="none", not sure why.  That might
be  real bug on our part, or I might be misinterpreting how hit testing should
actually work.

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

More information about the webkit-unassigned mailing list